diff --git a/src/visitors/http/index.js b/src/visitors/http/index.js index 18dfc61..39f3cda 100644 --- a/src/visitors/http/index.js +++ b/src/visitors/http/index.js @@ -30,7 +30,7 @@ module.exports = function visitHttp (inventory, template) { let lambdaName = getLambdaName(route.path) let name = toLogicalID(`${method}${lambdaName.replace(/000/g, '')}`) // GetIndex let routeLambda = `${name}HTTPLambda` - let routeEvent = `${name}HTTPEvent` + let routeEvent = 'HTTPEvent' //AWS appends the lambda name // Create the Lambda template.Resources[routeLambda] = createLambda({