Skip to content

Commit

Permalink
Change commands to change default state resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Nov 1, 2024
1 parent c3595da commit 2dffe70
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions web/deploy/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ It is recommended that you use the default variable values, as defined in `modul
```bash
$ cd ~/path-to-repo/web/deploy/terraform/
$ # Change DynamoDB state lock table names
$ find staging/ shared/ production/ -name "variables_state.tf" -exec sed -i "s/terraform-state-locks/foo-bar-state-locks/g" {} +
$ find modules/ -name "variables.tf" -exec sed -i "s/terraform-state-locks/foo-bar-state-locks/g" {} +
$ find -name "*.tf" -exec sed -i "s/terraform-state-locks/foo-bar-state-locks/g" {} +
$ # Change names of S3 buckets that store OpenTofu state
$ find staging/ shared/ production/ -name "variables_state.tf" -exec sed -i "s/osm-terraform-state-storage/foo-bar-state-storage-test/g" {} +
$ find modules/ -name "variables.tf" -exec sed -i "s/osm-terraform-state-storage/foo-bar-state-storage-test/g" {} +
$ find -name "*.tf" -exec sed -i "s/osm-terraform-state-storage/foo-bar-state-storage-test/g" {} +
$ # Change AWS region where state resources reside
$ find staging/ shared/ production/ -name "variables_state.tf" -exec sed -i "s/us-east-1/us-foobar-1/g" {} +
$ find modules/ -name "variables.tf" -exec sed -i "s/us-east-1/us-foobar-1/g" {} +
$ find -name "*.tf" -exec sed -i "s/us-east-1/us-foobar-1/g" {} +
```

Once you have configured the variables (or preferably will be using the defaults), you can deploy the state management resources with
Expand Down

0 comments on commit 2dffe70

Please sign in to comment.