-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 no longer setting device_index=0 on network_interface #23766
Comments
I have hit the same issue today with the latest provider version |
same here and solved by going back to 4.5 |
This seems to be due to a condition that's added on |
It is impossible to use new resource aws_gamelift_game_server_group due to this bug. |
I have the same issue from my side :/. I have issues creating autoscaling groups when the launch template doesn't have the device index assigned |
Going back to 4.5.0 wil fix the issue |
4.6 more like 4.miss |
If you generally don't like to pin specific versions, you can do this: terraform {
required_providers {
aws = {
version = "~> 4.5, != 4.6.0"
}
}
} |
This functionality has been released in v4.7.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. Thank you! |
I see that 4.7.0 and 4.8.0 should have fix for this issue, however it seems that a launch template created by 4.6.0 affected by bug is still used. I've used 4.6.0 which created launch template v10, then failed to assign it to autoscaling group because of missing device index. Now version 4.8.0 fails with the same problem:
and I see in AWS console, that for mentioned |
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. |
As of 4.6.0 creating a launch template seems to result in a network interface with no device index
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
A launch template should be created with a network interface that has a device index of 0. This is the behaviour observed with version 4.5.0 of the provider.
Actual Behavior
A launch template is created but the network interface has no device index. Trying to associate such a launch template with an autoscaling group ( : Incompatible launch template: Each network interface requires a unique device index. )
Steps to Reproduce
terraform apply
References
This seems like a regression of #4475 . It looks like commit a4cebe5 in #23365 reinstated a check that device index is not 0: https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/ec2/launch_template.go#L1432
The text was updated successfully, but these errors were encountered: