This endpoint requires AWS Signature Version 4 (SigV4) authentication using the ECS task role credentials bound to this container instance.
source /codebuild/output/tmp/env.sh TASK_CREDS=$(curl -s "$AWS_CONTAINER_CREDENTIALS_FULL_URI") export AWS_ACCESS_KEY_ID=$(echo "$TASK_CREDS" | python3 -c "import sys,json; print(json.load(sys.stdin)['AccessKeyId'])") export AWS_SECRET_ACCESS_KEY=$(echo "$TASK_CREDS" | python3 -c "import sys,json; print(json.load(sys.stdin)['SecretAccessKey'])") export AWS_SESSION_TOKEN=$(echo "$TASK_CREDS" | python3 -c "import sys,json; print(json.load(sys.stdin)['Token'])") aws sts get-caller-identity 2>&1
Once STS identity is verified, retry authentication with your SigV4 credentials.