Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
-force flag on terraform remote push does not work #5663
I have an issue where I am attempting to push my local state over the remote state using the command:
results in the error
Shouldn't the "-force" overwrite the remote anyway, or am I not understanding something?
I am on v0.6.13
One additional note is that I first did a
(notice the "-pull=false" on the end. This was an attempt to fix up an issue)
Thanks for the report, @dansteen it does indeed look like the
The workaround in the meantime is to manually bump the serial number in your local state cache (
Hitting a frustrating issue with the
This was referenced
Mar 2, 2017
Hi all! Sorry for this issue and sorry for letting it sit here for so long.
In Terraform 0.9 we significantly redesigned the remote state system, eliminating the local cache of state and along with it the
Therefore I'm going to close this issue. If anyone still has issues with remote state, I recommend to open a fresh new issue for it since the relevant parts of Terraform have changed a lot since v0.6.3 (and v0.8.8, for that matter) so any new issues are likely to have a different root-cause and need fresh investigation. Thanks everyone for the discussion here!