Skip to content

Commit eafdee6

Browse files
authored
change: use regional endpoint for STS in builds (#10)
1 parent 244e30d commit eafdee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ phases:
2020
pre_build:
2121
commands:
2222
- start-dockerd
23-
- ACCOUNT=$(aws sts get-caller-identity --query 'Account' --output text)
23+
- ACCOUNT=$(aws --region $AWS_DEFAULT_REGION sts --endpoint-url https://sts.$AWS_DEFAULT_REGION.amazonaws.com get-caller-identity --query 'Account' --output text)
2424
- PREPROD_IMAGE="$ACCOUNT.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$ECR_REPO"
2525
- PR_NUM=$(echo $CODEBUILD_SOURCE_VERSION | grep -o '[0-9]\+')
2626
- BUILD_ID="$(echo $CODEBUILD_BUILD_ID | sed -e 's/:/-/g')"

0 commit comments

Comments
 (0)