Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_launch_template data source error setting network_interfaces for version 3.x #14597

Closed
andreasterrius opened this issue Aug 12, 2020 · 2 comments · Fixed by #14599
Closed
Labels
bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@andreasterrius
Copy link

andreasterrius commented Aug 12, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

terraform 0.12.10 (also tested with 0.12.28)

  • provider.aws: version = "~> 3.1"
  • provider.external: version = "~> 1.2"
  • provider.null: version = "~> 2.1"
  • provider.template: version = "~> 2.1"

Affected Resource(s)

aws_launch_template data source

Terraform Configuration Files

data "aws_launch_template" "current" {
  filter {
    name   = "launch-template-name"
    values = ["${var.name}-*"]
  }
}

Debug Output

Error: error setting network_interfaces: network_interfaces.0.delete_on_termination: '' expected type 'bool', got unconvertible type 'string'

  on .terraform/modules/dir/data.tf line 13, in data "aws_launch_template" "current":
  13: data "aws_launch_template" "current" {

Panic Output

Expected Behavior

Execpted no error

Actual Behavior

Error: error setting network_interfaces: network_interfaces.0.delete_on_termination: '' expected type 'bool', got unconvertible type 'string'

  on .terraform/modules/dir/data.tf line 13, in data "aws_launch_template" "current":
  13: data "aws_launch_template" "current" {

Steps to Reproduce

  1. terraform apply

Important Factoids

References

Issue has been fixed here but not for version 3 it seems
#12067

@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Aug 12, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 12, 2020
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 12, 2020
@anGie44
Copy link
Contributor

anGie44 commented Aug 12, 2020

The fix for this has been merged and will release with version 3.2.0 of the Terraform AWS Provider.

@ghost
Copy link

ghost commented Sep 12, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
3 participants