Skip to content

Commit

Permalink
update region
Browse files Browse the repository at this point in the history
  • Loading branch information
pennyZZZZ committed Oct 16, 2023
1 parent 7edb987 commit 568dd44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports.cleanupImages = (event, context, callback) => {
const repoNames = process.env.REPO_NAMES.split(",");
const registry = process.env.AWS_ACCOUNT_ID;

const ecrRegion = process.env.ECR_REGION || "us-east-1";
const ecrRegion = process.env.ECR_REGION || "ap-southeast-2";
const ecr = new ECRClient({ region: ecrRegion });

const reposNotFound = [];
Expand Down
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ functions:
REPO_NAMES: ${env:REPO_NAMES}
AWS_ACCOUNT_ID: ${env:AWS_ACCOUNT_ID}
DRY_RUN: ${env:DRY_RUN, 'true'}
ECR_REGION: ${env:RQP_REGION, 'us-east-1'}
ECR_REGION: ${env:RQP_REGION}
SLACK_WEBHOOK: ${env:SLACK_WEBHOOK}
timeout: 45
events:
Expand Down

0 comments on commit 568dd44

Please sign in to comment.