File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ if [ "$REGION_SET" == "false" ]; then
42
42
echo " Warning: Using default region $REGION from your environment. Please ensure this is where pcluster manager is deployed." ;
43
43
fi
44
44
45
- LAMBDA_ARN=$( aws lambda list-functions --query " Functions[?contains(FunctionName, 'PclusterManagerFunction')] | [0].FunctionArn" | xargs echo)
45
+ LAMBDA_ARN=$( aws lambda --region ${REGION} list-functions --query " Functions[?contains(FunctionName, 'PclusterManagerFunction')] | [0].FunctionArn" | xargs echo)
46
46
ECR_REPO=pcluster-manager-awslambda
47
47
48
48
PUBLIC_ECR_ENDPOINT=" public.ecr.aws/n0x0o5k1"
49
49
ACCOUNT_ID=$( aws sts get-caller-identity --query " Account" --output text)
50
50
ECR_ENDPOINT=" ${ACCOUNT_ID} .dkr.ecr.${REGION} .amazonaws.com"
51
- PRIVATE_ECR_REPO=$( aws ecr describe-repositories --query " repositories[?contains(repositoryName, 'pcluster-manager')] | [0].repositoryName" --output text)
51
+ PRIVATE_ECR_REPO=$( aws ecr --region ${REGION} describe-repositories --query " repositories[?contains(repositoryName, 'pcluster-manager')] | [0].repositoryName" --output text)
52
52
IMAGE=${ECR_ENDPOINT} /${PRIVATE_ECR_REPO} :latest
53
53
54
54
if [ " $LOCAL " == " true" ]; then
@@ -71,4 +71,4 @@ aws ecr get-login-password --region ${REGION} | docker login --username AWS --pa
71
71
echo " Pushing private docker container..."
72
72
docker push ${IMAGE}
73
73
echo " Updating lambda..."
74
- aws lambda update-function-code --function-name ${LAMBDA_ARN} --image-uri ${IMAGE} --publish
74
+ aws lambda --region ${REGION} update-function-code --function-name ${LAMBDA_ARN} --image-uri ${IMAGE} --publish
You can’t perform that action at this time.
0 commit comments