Skip to content

Commit

Permalink
Hopefully fix aws auth issues
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Jan 3, 2024
1 parent cdad023 commit f43caaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/aws/validate-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit f43caaf

Please sign in to comment.