From 2adbc0aff03ee02014d754f965fc249e24649a23 Mon Sep 17 00:00:00 2001 From: Penny Zhang Date: Tue, 12 Sep 2023 16:47:00 +1000 Subject: [PATCH] Update serverless.yml --- serverless.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/serverless.yml b/serverless.yml index 116bea5..73ac736 100644 --- a/serverless.yml +++ b/serverless.yml @@ -5,7 +5,7 @@ frameworkVersion: ">=2.0.0 <3.0.0" provider: name: aws runtime: nodejs18.x - stage: dev + stage: "${env:STAGE}" region: ap-southeast-2 iamRoleStatements: - Effect: "Allow" @@ -13,11 +13,11 @@ provider: - "ecr:*" Resource: "*" environment: - REPO_NAMES: ${env:REPO_NAMES} - AWS_ACCOUNT_ID: ${env:AWS_ACCOUNT_ID} - DRY_RUN: ${env:DRY_RUN, 'true'} - ECR_REGION: ${env:ECR_REGION, 'us-east-1'} - SLACK_WEBHOOK: ${env:SLACK_WEBHOOK} + REPO_NAMES: ${env:REPO_NAMES} + AWS_ACCOUNT_ID: ${env:AWS_ACCOUNT_ID} + DRY_RUN: ${env:DRY_RUN, 'true'} + ECR_REGION: ${env:ECR_REGION, 'us-east-1'} + SLACK_WEBHOOK: ${env:SLACK_WEBHOOK} functions: cleanupImages: