File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ phases:
11
11
pre_build :
12
12
commands :
13
13
- start-dockerd
14
- - ACCOUNT=$(aws sts get-caller-identity --query 'Account' --output text)
14
+ - ACCOUNT=$(aws --region $AWS_DEFAULT_REGION sts --endpoint-url https://sts.$AWS_DEFAULT_REGION.amazonaws.com get-caller-identity --query 'Account' --output text)
15
15
16
16
build :
17
17
commands :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ phases:
16
16
pre_build :
17
17
commands :
18
18
- start-dockerd
19
- - ACCOUNT=$(aws sts get-caller-identity --query 'Account' --output text)
19
+ - ACCOUNT=$(aws --region $AWS_DEFAULT_REGION sts --endpoint-url https://sts.$AWS_DEFAULT_REGION.amazonaws.com get-caller-identity --query 'Account' --output text)
20
20
- PREPROD_IMAGE="$ACCOUNT.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$ECR_REPO"
21
21
- PR_NUM=$(echo $CODEBUILD_SOURCE_VERSION | grep -o '[0-9]\+')
22
22
- echo 'Pull request number:' $PR_NUM '. No value means this build is not from pull request.'
You can’t perform that action at this time.
0 commit comments