-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
42 lines (39 loc) · 950 Bytes
/
serverless.yml
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
37
38
39
40
41
42
org:
app: form-handler
service: form-handler
provider:
name: aws
stage: ${opt:stage, 'dev'}
# region us-west-1 doesn't support Lambda logging, hence us-west-2
region: us-west-2
runtime: nodejs10.x
functions:
handle:
handler: index.handler
description: "Form post endpoint."
timeout: 10
environment:
MAILGUN_API_KEY:
MAILGUN_DOMAIN:
SLACK_CHANNEL:
SLACK_ENDPOINT:
SITE_NAME:
ROOT_REDIRECT:
ALLOWED_ORIGINS:
events:
- http:
path: /
method: get
cors: true
- http:
path: /
method: post
cors: true
- http:
path: /{proxy+}
method: post
cors: true
package:
exclude:
- .ddev/**
- .idea/**