From f43caaf5cf9a19fc068dd771730b98bdc0909ae7 Mon Sep 17 00:00:00 2001 From: object-Object Date: Tue, 2 Jan 2024 21:10:28 -0500 Subject: [PATCH] Hopefully fix aws auth issues --- scripts/aws/validate-service.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/aws/validate-service.sh b/scripts/aws/validate-service.sh index 6aebca1..9a2e0ab 100644 --- a/scripts/aws/validate-service.sh +++ b/scripts/aws/validate-service.sh @@ -2,11 +2,14 @@ set -euox pipefail get_ssm_parameter() { - aws ssm get-parameter --name "$*" --region us-east-1 --with-decryption | jq --raw-output '.Parameter.Value' + aws ssm get-parameter --name "$*" --with-decryption | jq --raw-output '.Parameter.Value' } cd /var/lib/codedeploy-apps/HexBug +export AWS_SHARED_CREDENTIALS_FILE=/home/object/codedeploy/temporary-credentials +export AWS_REGION=us-east-1 + stage="prod" bot_id="$(get_ssm_parameter /$stage/HexBug/bot-id)" webhook="$(get_ssm_parameter /$stage/HexBug/health-check-url)"