Hacker News new | ask | show | jobs
by heydonovan 1831 days ago
I've gotten into the habit of manually creating a backup of the state file:

# to view the state file

$ aws s3 cp --quiet s3://terraform/production/terraform.tfstate /dev/stdout

# to backup the state file

$ aws s3 cp --quiet s3://terraform/production/terraform.tfstate > terraform.tfstate.bak

1 comments

S3 automatic object versioning is useful for that.