From 891eb6ec19a7458e4d2cfa23217c25a51ed4a6c7 Mon Sep 17 00:00:00 2001 From: Matthew Casperson Date: Sat, 6 Oct 2018 12:09:41 +1000 Subject: [PATCH] Fixed serverless.yml --- serverless.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/serverless.yml b/serverless.yml index f03499c6..71005cae 100644 --- a/serverless.yml +++ b/serverless.yml @@ -18,4 +18,19 @@ functions: runCucumber: handler: com.octopus.LambdaEntry::runCucumber timeout: 300 - memorySize: 512 \ No newline at end of file + memorySize: 512 + events: + - http: + method: post + path: runCucumber + integration: lambda + request: + parameters: + headers: + 'X-Amz-Invocation-Type': true + template: + text/plain: "\"$util.escapeJavaScript($input.body).replaceAll(\"\\'\",\"'\")\"" + response: + headers: + Content-Type: "'application/json'" + template: $util.parseJson($input.body) \ No newline at end of file