Seclude canonicalFunctionNamePrefix var

This commit is contained in:
Mariusz Nowak 2019-06-12 14:58:24 +02:00
parent 490e714ccd
commit d417a0fc4e
No known key found for this signature in database
GPG Key ID: B1FBDA8A182B03F2

View File

@ -83,8 +83,10 @@ module.exports = {
}
);
const canonicalFunctionNamePrefix =
`${this.provider.serverless.service.service}-${this.provider.getStage()}`;
const logGroupsPrefix = this.provider.naming
.getLogGroupName(`${this.provider.serverless.service.service}-${this.provider.getStage()}`);
.getLogGroupName(canonicalFunctionNamePrefix);
const policyDocumentStatements = this.serverless.service.provider.compiledCloudFormationTemplate
.Resources[this.provider.naming.getRoleLogicalId()]