Closed EugenKon closed 2 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @EugenKon š Thank you for taking the time to raise this! Are you able to supply a full configuration that can be used to reproduce the issue? I notice from the logging that you provided that you're using modules and outputs -- the way those things are configured can have an impact.
@justinretzolk I can, but I can not send it to your email address, because my email address is blocked in some way =(
Hmm that's strange @EugenKon -- I'm not sure what email you're trying to send to, but usually folks will encrypt the logs and then upload in a comment here. That said, I reviewed the initial ask again and noticed something that I'd not caught last time.
The instance is not updated in place, because its type was changed and reboot will occur.
In this case, what Terraform means by "update in place" is that Terraform itself will not be destroying and then re-creating the resource as it does for resources that are not able to be updated (note that the instance ID stays the same, for example). That AWS triggers the instance to reboot after the update isn't something that Terraform has any insight into. We looked into this on a previous issue, where a couple of workaround options were presented as well.
Since this is currently behaving as expected, I'm going to close this issue. If you experience unexpected behavior in the future, please do continue to let us know!
[!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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Core Version
v1.8.5
AWS Provider Version
v5.55.0
Affected Resource(s)
Expected Behavior
The instance is not updated in place, because its type was changed and reboot will occur.
Actual Behavior
The instance is rebooted and its IP was changed
Relevant Error/Panic Output Snippet
Another example of wrong state after terraform plan/apply:
And after apply:
If I plan with
refresh-only
option then changes are visible: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