aws_launch_template device_index 0
is not set to eth0
for some reason
#23807
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
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
I want Terraform to create Launch template with Network interfaces mapping to device indices where device_index: 0 should be mapped to
eth0
, device_index: 1 toeth1
and so on.Actual Behavior
I'm deploying this code in AWS China (Beijing) region and faced the issue: network interface with
device_index = 0
is not mapped toeth0
in Launch template for some reason. Network interfaces withdevice index > 0
just are mapped correctly, I can see that launch template has mappings foreth1
andeth2
. I can also see that interface with device_index = 0 is also present however it does not have mapping toeth0
and thus further ASG creation from this LT is failed with an error:Error creating Auto Scaling Group: InvalidQueryParameter: Incompatible launch template: Each network interface requires a unique device index.
Statefile has information that
device_index
for this "problematic" interface is0
.Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: