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)"