forked from danielireson/formplug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
36 lines (33 loc) · 760 Bytes
/
Copy pathserverless.yml
File metadata and controls
36 lines (33 loc) · 760 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: ${file(config.json):SERVICE_NAME}
plugins:
- serverless-plugin-include-dependencies
provider:
name: aws
runtime: nodejs8.10
stage: ${file(config.json):STAGE}
region: ${file(config.json):REGION}
iamRoleStatements:
- Effect: "Allow"
Action:
- "lambda:InvokeFunction"
Resource: "*"
- Effect: "Allow"
Action:
- "sqs:SendMessage"
- "ses:SendEmail"
Resource: "*"
- Effect: "Allow"
Action:
- "ses:*"
Resource: ${file(config.json):SENDER_ARN}
functions:
receive:
handler: src/handler.handle
events:
- http:
path: /
method: post
request:
parameters:
querystrings:
format: true