diff --git a/lib/actions/EndpointBuildApiGateway.js b/lib/actions/EndpointBuildApiGateway.js index 955c693c4..433f859a0 100644 --- a/lib/actions/EndpointBuildApiGateway.js +++ b/lib/actions/EndpointBuildApiGateway.js @@ -189,7 +189,7 @@ module.exports = function(SPlugin, serverlessPath) { _this.deployedLambda = data.Configuration; // Prepare StatementId - evt.endpoint.lambdaPolicyStatementId = ('s_apig' + evt.endpoint.path + '_' + evt.endpoint.method).replace(/\//g, '_'); + evt.endpoint.lambdaPolicyStatementId = ('s_apig' + evt.endpoint.path + '_' + evt.endpoint.method).replace(/[\/{}]/g, '_'); SUtils.sDebug( '"'