Skip to content

Commit

Permalink
fix authorizer Uri
Browse files Browse the repository at this point in the history
  • Loading branch information
vkkis93 committed Jun 6, 2017
1 parent c2d4dba commit 953775f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stackops/apiGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;

Expand Down

0 comments on commit 953775f

Please sign in to comment.