You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
State within the provided -state=... file should have been updated.
Actual Behavior
State provided in the remote s3 backend terraform block above was updated and the local -state=... provided with the option was backed up but not the state in the remote bucket.
Steps to Reproduce
Write above terraform block with remote backend s3 state to a terraform file.
terraform state pull > dev.tfstate
terraform state rm -state=./dev.tfstate aws_iam_group.mygroup
Data-loss (IMO): dev.tfstate is backed up to dev.tfstate.backup.* BUT remote state in the bucket is updated(!!!). We have s3 bucket object versioning on, so we just reverted without issue, but its not clear whether this is a backend issue or something higher in which it could be very scary very fast.
Important Factoids
Standard AWS + S3
References
Nope
The text was updated successfully, but these errors were encountered:
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
locked and limited conversation to collaborators
Apr 8, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.9.8
Terraform Configuration Files
Debug Output
None
Panic Output
None
Expected Behavior
State within the provided
-state=...
file should have been updated.Actual Behavior
State provided in the remote s3 backend
terraform
block above was updated and the local-state=...
provided with the option was backed up but not the state in the remote bucket.Steps to Reproduce
terraform
block with remote backend s3 state to a terraform file.terraform state pull > dev.tfstate
terraform state rm -state=./dev.tfstate aws_iam_group.mygroup
Data-loss (IMO):
dev.tfstate
is backed up todev.tfstate.backup.*
BUT remote state in the bucket is updated(!!!). We have s3 bucket object versioning on, so we just reverted without issue, but its not clear whether this is a backend issue or something higher in which it could be very scary very fast.Important Factoids
Standard AWS + S3
References
Nope
The text was updated successfully, but these errors were encountered: