From 953775fe53a540d1ba3184d82d9c3ac691232fa7 Mon Sep 17 00:00:00 2001 From: vkkis Date: Tue, 6 Jun 2017 16:26:11 +0300 Subject: [PATCH] fix authorizer Uri --- lib/stackops/apiGateway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stackops/apiGateway.js b/lib/stackops/apiGateway.js index 64c7431..6333162 100644 --- a/lib/stackops/apiGateway.js +++ b/lib/stackops/apiGateway.js @@ -133,7 +133,7 @@ module.exports = function(currentTemplate, aliasStackTemplates, currentAliasStac const funcIndex = _.findIndex(uriParts, part => _.has(part, 'Fn::GetAtt')); // Use the SERVERLESS_ALIAS stage variable to determine the called function alias - uriParts.splice(funcIndex + 1, 0, `:${this._alias}`); + uriParts.splice(funcIndex + 1, 0, ':${stageVariables.SERVERLESS_ALIAS}'); authorizer.Properties.Name = `${authorizer.Properties.Name}-${this._alias}`;