From 1c74b8989f1ed37a06a18eac3140c8c5b40bff3e Mon Sep 17 00:00:00 2001 From: Kamil Burzynski Date: Fri, 18 Dec 2015 11:06:58 +0100 Subject: [PATCH] Added support for properly deploying endpoints with `foo/{bar}/baz` form --- lib/actions/EndpointBuildApiGateway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( '"'