Re-order Terraform README steps

Co-authored-by: Ryan Ahearn <ryan.ahearn@gsa.gov>
This commit is contained in:
John Skiles Skinner
2024-04-08 15:15:01 -07:00
parent d03be4b089
commit dc334e6686

View File

@@ -26,6 +26,7 @@ The bootstrap module is used to create an s3 bucket for later terraform runs to
1. Follow instructions under `Use bootstrap credentials` 1. Follow instructions under `Use bootstrap credentials`
1. Ensure that `import.sh` includes a line and correct IDs for any resources created 1. Ensure that `import.sh` includes a line and correct IDs for any resources created
1. Run `./teardown_creds.sh` to remove the space deployer account used to create the s3 bucket 1. Run `./teardown_creds.sh` to remove the space deployer account used to create the s3 bucket
1. Copy `bucket` from `bucket_credentials` output to the backend block of `staging/providers.tf` and `production/providers.tf`
### To make changes to the bootstrap module ### To make changes to the bootstrap module
@@ -40,6 +41,7 @@ The bootstrap module is used to create an s3 bucket for later terraform runs to
### Retrieving existing bucket credentials ### Retrieving existing bucket credentials
1. Run `./import.sh` to pull existing terraform state into the local state
1. Run `./run.sh show` 1. Run `./run.sh show`
1. Follow instructions under `Use bootstrap credentials` 1. Follow instructions under `Use bootstrap credentials`
@@ -52,8 +54,6 @@ The bootstrap module is used to create an s3 bucket for later terraform runs to
aws_secret_access_key = <secret_access_key from bucket_credentials> aws_secret_access_key = <secret_access_key from bucket_credentials>
``` ```
1. Copy `bucket` from `bucket_credentials` output to the backend block of `staging/providers.tf` and `production/providers.tf`
## SpaceDeployers ## SpaceDeployers
A [SpaceDeployer](https://cloud.gov/docs/services/cloud-gov-service-account/) account is required to run terraform or A [SpaceDeployer](https://cloud.gov/docs/services/cloud-gov-service-account/) account is required to run terraform or