Skip to content

Commit 891eb6e

Browse files
committed
Fixed serverless.yml
1 parent 4dbed88 commit 891eb6e

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

serverless.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@ functions:
1818
runCucumber:
1919
handler: com.octopus.LambdaEntry::runCucumber
2020
timeout: 300
21-
memorySize: 512
21+
memorySize: 512
22+
events:
23+
- http:
24+
method: post
25+
path: runCucumber
26+
integration: lambda
27+
request:
28+
parameters:
29+
headers:
30+
'X-Amz-Invocation-Type': true
31+
template:
32+
text/plain: "\"$util.escapeJavaScript($input.body).replaceAll(\"\\'\",\"'\")\""
33+
response:
34+
headers:
35+
Content-Type: "'application/json'"
36+
template: $util.parseJson($input.body)

0 commit comments

Comments
 (0)