Skip to content
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

Closed
mwinters0 opened this issue Jan 8, 2016 · 4 comments
Closed

Comments

@mwinters0
Copy link

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.

@hansnqyr
Copy link

👍 would love this to be the default with a switch/env variable to disable

@apparentlymart
Copy link
Contributor

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.

@phinze
Copy link
Contributor

phinze commented Jan 13, 2016

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 plan, apply, and destroy, but we're planning to update the behavior of plan to make it easier to run it safely without accidentally colliding with another running apply. But in the apply and destroy case, this is how it works today!

@phinze phinze closed this as completed Jan 13, 2016
@ghost
Copy link

ghost commented Apr 28, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants