-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathserverless.yml
More file actions
36 lines (33 loc) · 811 Bytes
/
serverless.yml
File metadata and controls
36 lines (33 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
service:
name: cucumber-chrome-aws
provider:
name: aws
runtime: java8
region: us-east-1
iamRoleStatements:
- Effect: Allow
Resource: "*"
Action:
- ses:SendEmail
package:
artifact: target/webdrivertraining-1.0-SNAPSHOT.jar
functions:
runCucumber:
handler: com.octopus.LambdaEntry::runCucumber
timeout: 300
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)