Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/stackops/apiGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ module.exports = function(currentTemplate, aliasStackTemplates, currentAliasStac
}

stageStack.Resources[name] = method;

// Remove DependsOn for LambdaPermissionApiGateway since it is now owned by the alias stack
if (_.isArray(method.DependsOn)) {
_.forEach(method.DependsOn, (val, key) => {
if (_.endsWith(val, 'LambdaPermissionApiGateway')) {
method.DependsOn.splice(key, 1);
}
});
}
});

// Audjust authorizer Uri and name (stage variables are not allowed in Uris here)
Expand Down