-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
aws: store and read instance state #3261
Conversation
This allows us to store the instance state into the state file. This means we can now easily see the instance state with `terraform show`.
What do you think of making this field (with some extra logic) not just |
I love that idea - we have 1 or 2 instance resources that when i rerun TF, they create running instances. I'd love to be able to mark them as stopped :) |
Hi @radeksimko This sounds good. I'm curious about how the flow should be. Assume I have a Now if I run |
@fatih Yes, the described flow is exactly how I think it should work. Expected state by default should be
|
Thanks for the clarification @radeksimko. I'll work on the rest and update the PR. I'll ping again once I'm ready. |
Hey all – is this still a work in progress, or shall we close it? |
@catsby unfortunately I don't have time to tackle the idea of @radeksimko beyond this current PR. Feel free to close, or merge and work on a different PR if you wish. |
Thanks for the update @fatih ! We'll review and see if it's something we can pick up on. Appreciate what you've done so far 😄 |
Going to merge as is, thank you! |
aws: store and read instance state
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. |
This allows us to store the instance state into the state file. This
means we can now easily see the instance state with
terraform show
.An example terraform show result: