[Bug]: Don't associate public ip when eip is assigned to instance #37318
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Terraform Core Version
1.7.5
AWS Provider Version
4.25
Affected Resource(s)
aws_eip, aws_instance
Expected Behavior
After applying the next plan (an aws_instance with eip) in this manner:
All goes like estimate, istance has correctly the eip1 public eip, but if a plan is executed after this, the associate_public_ip_address directive force the replacemente of the instance, and the only way to correct this is to comment out or put associate_public_ip_address to true.
Is this behavior correct or a bug? I can't figure how this can be correct, but not having strong experience, preferring to ask to the community
Actual Behavior
The instance is correctly created, but every next plan, requires the istance to be replaced.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: