File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
templates/shared/runtime/bin Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ PULL_ARGS=""
2424if [[ " ${PAUSE_CONTAINER_IMAGE} " == * " dkr.ecr" * ]]; then
2525 PULL_ARGS=" ${PULL_ARGS} --user AWS:$( aws ecr get-login-password) "
2626elif [[ " ${PAUSE_CONTAINER_IMAGE} " == * " public.ecr.aws" * ]]; then
27- if ECR_PUBLIC_PASSWORD=$( aws ecr-public get-login-password) ; then
27+ # ECR public authentication must always be through us-east-1
28+ # https://docs.aws.amazon.com/AmazonECR/latest/public/public-registry-auth.html
29+ if ECR_PUBLIC_PASSWORD=$( aws ecr-public get-login-password --region=us-east-1) ; then
2830 PULL_ARGS=" ${PULL_ARGS} --user AWS:${ECR_PUBLIC_PASSWORD} "
2931 else
3032 echo " Failed to authenticate to public ECR, retrying with unauthenticated pull" >&2
You can’t perform that action at this time.
0 commit comments