Skip to content

Commit

Permalink
Merge pull request #139 from Clever/INFRANG-6253
Browse files Browse the repository at this point in the history
remove publishing to us-east-2
  • Loading branch information
jakegut authored Jul 29, 2024
2 parents 7380812 + fc0b131 commit f358691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion circleci/catapult-publish-lambda
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [[ $RUN_TYPE != "lambda" ]]; then
exit 1
fi

AWS_REGIONS="us-east-1 us-east-2 us-west-1 us-west-2"
AWS_REGIONS="us-east-1 us-west-1 us-west-2"
for REGION in ${AWS_REGIONS}; do
S3_ARTIFACTS=${S3_ARTIFACTS},"S3Buckets={${REGION}=\\\"${LAMBDA_AWS_BUCKET}-${REGION}"
done
Expand Down
6 changes: 1 addition & 5 deletions circleci/docker-publish
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ ORG=clever
ECR_REGION_US_WEST_1=us-west-1
ECR_REGION_US_WEST_2=us-west-2
ECR_REGION_US_EAST_1=us-east-1
ECR_REGION_US_EAST_2=us-east-2
AWS_ECR_PROFILE=oidc-ecr-profile

echo "Docker version..."
Expand Down Expand Up @@ -132,18 +131,15 @@ if [[ -z $OIDC_ECR_UPLOAD_ROLE ]]; then
ecr_login $ECR_REGION_US_WEST_1 $ECR_PUSH_ID $ECR_PUSH_SECRET
ecr_login $ECR_REGION_US_WEST_2 $ECR_PUSH_ID $ECR_PUSH_SECRET
ecr_login $ECR_REGION_US_EAST_1 $ECR_PUSH_ID $ECR_PUSH_SECRET
ecr_login $ECR_REGION_US_EAST_2 $ECR_PUSH_ID $ECR_PUSH_SECRET
else
echo "Logging into ECR using role credentials..."
assume_role_with_web_identity $OIDC_ECR_UPLOAD_ROLE $AWS_ECR_PROFILE
ecr_login_with_profile $ECR_REGION_US_WEST_1
ecr_login_with_profile $ECR_REGION_US_WEST_2
ecr_login_with_profile $ECR_REGION_US_EAST_1
ecr_login_with_profile $ECR_REGION_US_EAST_2
fi

echo "Pushing to ECR..."
push_ecr_image $ECR_REGION_US_WEST_1
push_ecr_image $ECR_REGION_US_WEST_2
push_ecr_image $ECR_REGION_US_EAST_1
push_ecr_image $ECR_REGION_US_EAST_2
push_ecr_image $ECR_REGION_US_EAST_1

0 comments on commit f358691

Please sign in to comment.