[Bug]: Provider produced inconsistent plan for aws_eip / aws_nat_gateway #34268
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
service/vpc
Issues and PRs that pertain to the vpc service.
Terraform Core Version
1.5.7
AWS Provider Version
5.24.0
Affected Resource(s)
Expected Behavior
When creating aws_eip and using them for
secondary_allocation_ids
in aw_nat_gateway, association ids are correctly resolved after creation. See terraform-aws-modules/terraform-aws-vpc#1005 with a sample code.Actual Behavior
Provider fails to assign created EIPs on the first apply. Running apply again for the second time will correctly perform given action.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
You can clone https://github.com/pdrastil/terraform-aws-vpc/tree/feature/nat-secondary-ips
test.auto.tfvars
Steps to Reproduce
secondary_nat_ips = 0
secondary_nat_ips = 1
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: