diff --git a/buildspec-release.yml b/buildspec-release.yml index afe0672..57cb3af 100644 --- a/buildspec-release.yml +++ b/buildspec-release.yml @@ -17,7 +17,7 @@ phases: commands: - start-dockerd - - ACCOUNT=$(aws sts get-caller-identity --query 'Account' --output text) + - ACCOUNT=$(aws --region $AWS_DEFAULT_REGION sts --endpoint-url https://sts.$AWS_DEFAULT_REGION.amazonaws.com get-caller-identity --query 'Account' --output text) build: commands: diff --git a/buildspec.yml b/buildspec.yml index 4eef4c1..0019d69 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -16,7 +16,7 @@ phases: commands: - start-dockerd - - ACCOUNT=$(aws sts get-caller-identity --query 'Account' --output text) + - ACCOUNT=$(aws --region $AWS_DEFAULT_REGION sts --endpoint-url https://sts.$AWS_DEFAULT_REGION.amazonaws.com get-caller-identity --query 'Account' --output text) build: commands: