From 7085ad2a74f9bb7b7ad06cc69889eef7b7b04d89 Mon Sep 17 00:00:00 2001 From: Janis Watts <184028114+jmwatts@users.noreply.github.com> Date: Tue, 22 Jul 2025 16:31:12 -0500 Subject: [PATCH] Update enable cloudfront directions (#31152) Just a couple small changes to help with the instructions --- infrastructure/loadtesting/terraform/readme.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/infrastructure/loadtesting/terraform/readme.md b/infrastructure/loadtesting/terraform/readme.md index 64c139dcbb..f284ab108f 100644 --- a/infrastructure/loadtesting/terraform/readme.md +++ b/infrastructure/loadtesting/terraform/readme.md @@ -77,9 +77,9 @@ This has an impact on real devices because they will not be notified of any comm ### Enabling Cloudfront > Do not commit your `BRANCH_NAME` if any files exist in `resources/TERRAFORM_WORKSPACE/` without a .encrypted extension. -> This step assumes that you've already successfully executed terraform apply and have a `kms_key_id` output. +> This step assumes that you've already successfully executed terraform apply and have a `kms_key_id` from the output of the terraform apply command. -1. Under the loadtesting directory, create directory `resources/TERRAFORM_WORKSPACE/`. Your `TERRAFORM_WORKSPACE` value can be retrieved with `terraform workspace show`. +1. Under the terraform directory, create directory `resources/TERRAFORM_WORKSPACE/`. Your `TERRAFORM_WORKSPACE` value can be retrieved with `terraform workspace show`. 2. Change directory to `resources/TERRAFORM_WORKSPACE/` @@ -120,7 +120,8 @@ fi aws kms encrypt --key-id "${1:?}" --plaintext fileb://<(cat "${2:?}") --output text --query CiphertextBlob > "${3:?}" ``` -5. Encrypt the objects using `encrypt.sh` +5. Make the script executable by running `chmod +x ../../encrypt.sh` +6. Encrypt the objects using `encrypt.sh` ``` for i in *; do ../../encrypt.sh $i $i.encrypted; done