From e1cc273e53c71fe91568604d86b3fee57758fa93 Mon Sep 17 00:00:00 2001 From: Changje Charles Jeong Date: Wed, 22 Jun 2022 15:59:01 +0900 Subject: [PATCH] Fix the stage option through CLI is not applied --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3dce0fc..2a76eaf 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,7 @@ class ServerlessLambdaEdgePreExistingCloudFront { const event = events[idx] if (event.preExistingCloudFront.stage !== undefined && - event.preExistingCloudFront.stage != `${serverless.service.provider.stage}`) { continue } + event.preExistingCloudFront.stage != `${this.stage}`) { continue } const functionArn = await this.getlatestVersionLambdaArn(functionObj.name) const resolvedDistributionId = await (event.preExistingCloudFront.distributionId['Fn::ImportValue']