diff --git a/lib/plugins/aws/lib/naming.js b/lib/plugins/aws/lib/naming.js index ab78b6032..d6eec8601 100644 --- a/lib/plugins/aws/lib/naming.js +++ b/lib/plugins/aws/lib/naming.js @@ -509,7 +509,7 @@ module.exports = { )}` ); }, - getCustomResurceApiGatewayAccountCloudWatchRoleResourceLogicalId() { + getCustomResourceApiGatewayAccountCloudWatchRoleResourceLogicalId() { return 'CustomApiGatewayAccountCloudWatchRole'; }, }; diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/stage/index.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/stage/index.js index a711ba977..81d867445 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/stage/index.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/lib/stage/index.js @@ -84,7 +84,7 @@ module.exports = { // }); // -------------------------------------------------------------------------------- - const customResourceLogicalId = this.provider.naming.getCustomResurceApiGatewayAccountCloudWatchRoleResourceLogicalId(); + const customResourceLogicalId = this.provider.naming.getCustomResourceApiGatewayAccountCloudWatchRoleResourceLogicalId(); const customResourceFunctionLogicalId = this.provider.naming.getCustomResourceApiGatewayAccountCloudWatchRoleHandlerFunctionLogicalId(); _.merge(cfTemplate.Resources, {