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.
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.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
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