-
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
[Bug]: EC2 public_ip isn't re-read on modifyInstanceAttributeWithStopStart #40586
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Is anyone working on this issue? I want to try fixing it cc @justinretzolk |
Not me |
This issue is already fixed by this commit @ewbankkit |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
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. |
Terraform Core Version
1.7.5
AWS Provider Version
5.81.0
Affected Resource(s)
aws_instance
Expected Behavior
modifyInstanceAttributeWithStopStart should refresh instance attributes that can change after a stop/start cycle. This mainly effects public_ip
Actual Behavior
Instance attributes that change aren't updated
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Change user-data, notice route53 record (or cloudflare, whatever) does not update
Changing instance type also causes the same problem
Debug Output
No response
Panic Output
No response
Important Factoids
public_ip is a computed attribute. Terraform performs an action that triggers a value change but does not re-read the new attribute value and update the state. This prevents dependent resources from being updated correctly
References
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-ec2-instance-stop-start-works.html
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: