top | item 27435176

(no title)

heydonovan | 4 years 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

discuss

order

cube2222|4 years ago

S3 automatic object versioning is useful for that.