5 ms·
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.t
by heydonovan 5y 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
- cube2222 5y agoS3 automatic object versioning is useful for that.