-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Remote state: A successful 'apply' or 'destroy' should imply 'remote push' #4580
Comments
👍 would love this to be the default with a switch/env variable to disable |
Hmm... Isn't this already the case? I don't think I have ever run "terraform remote push" explicitly... I always just let it happen automatically. It also happens after a refresh. |
Yep this is currently the case! 👍 When remote state is configured, any updated state as seen by a refresh will be automatically pushed. Currently this happens on |
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. |
I can't think of a use case where you wouldn't want to push state as soon as it's been successfully updated. It seems to open an unnecessary window of opportunity for desynchronization, especially in a data-driven workflow as discussed in #4169 .
Hoping to solicit opinions as to whether or not these should remain atomic operations.
The text was updated successfully, but these errors were encountered: