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}`;