by heydonovan · 5y ago · 0 comments
# 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