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 #12067

Closed
manfredlift opened this issue Feb 17, 2020 · 6 comments · Fixed by #12936
Closed

aws_launch_template data source error setting network_interfaces #12067

manfredlift opened this issue Feb 17, 2020 · 6 comments · Fixed by #12936
Assignees
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@manfredlift
Copy link

manfredlift commented Feb 17, 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 Version

Terraform v0.12.20
+ provider.archive v1.3.0
+ provider.aws v2.49.0
+ provider.external v1.2.0
+ provider.kubernetes v1.10.0
+ provider.local v1.4.0
+ provider.null v2.1.2
+ provider.random v2.2.1
+ provider.template v2.1.2

Affected Resource(s)

  • aws_launch_template data source

Terraform Configuration Files

data "aws_launch_template" "node_group" {
  name = "<launch_template_name_of_eks_node_group>"
}

Debug Output

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

Panic Output

Expected Behavior

Expected no error

Actual Behavior

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

Steps to Reproduce

  1. terraform apply

Important Factoids

This error happened when trying to look up a launch template, which was automatically created for an EKS node group.

@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Feb 17, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 17, 2020
@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 18, 2020
@widdix123
Copy link

Is there a workaround for this ? I actually need to update the launch template created by EKS Node Group

@jalaziz
Copy link
Contributor

jalaziz commented Mar 26, 2020

I'm seeing this error for non-EKS launch templates that were actually created by Terraform.

What's worse is that the launch templates have a value set for associate_public_ip_addresson the defined network interface.

@bflad
Copy link
Contributor

bflad commented Apr 23, 2020

The fix for this has been merged and will release with version 2.59.0 of the Terraform AWS Provider, likely tomorrow. Thanks to @jalaziz for the implementation. 👍

@ghost
Copy link

ghost commented Apr 24, 2020

This has been released in version 2.59.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented May 23, 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 May 23, 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. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
5 participants