Skip to content

Commit aab0f8b

Browse files
authored
change: use regional endpoint for STS in builds (#76)
1 parent 1c10f1b commit aab0f8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildspec-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ phases:
1717
commands:
1818
- start-dockerd
1919

20-
- ACCOUNT=$(aws sts get-caller-identity --query 'Account' --output text)
20+
- ACCOUNT=$(aws --region $AWS_DEFAULT_REGION sts --endpoint-url https://sts.$AWS_DEFAULT_REGION.amazonaws.com get-caller-identity --query 'Account' --output text)
2121

2222
build:
2323
commands:

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616
commands:
1717
- start-dockerd
1818

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

2121
build:
2222
commands:

0 commit comments

Comments
 (0)