-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
52 lines (48 loc) · 1.27 KB
/
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
43
44
45
46
47
48
49
50
51
52
service: twilio-gatekeeper
provider:
name: aws
runtime: nodejs8.10
environment:
GATEKEEPER_ACCESS_TONE: ${env:GATEKEEPER_ACCESS_TONE}
GATEKEEPER_MAX_ATTEMPTS: ${env:GATEKEEPER_MAX_ATTEMPTS}
GATEKEEPER_OPERATOR: ${env:GATEKEEPER_OPERATOR}
GATEKEEPER_PASSCODE: ${env:GATEKEEPER_PASSCODE}
GATEKEEPER_URL: ${env:GATEKEEPER_URL}
functions:
authorize:
handler: src/handler.authorize
events:
- http:
path: authorize
method: post
integration: lambda
response:
headers:
Content-Type: "'application/xml'"
template: $input.path("$")
hello:
handler: src/handler.hello
events:
- http:
path: hello
method: post
integration: lambda
response:
headers:
Content-Type: "'application/xml'"
template: $input.path("$")
version:
handler: src/handler.version
events:
- http:
path: version
method: get
integration: lambda
plugins:
- serverless-domain-manager
custom:
customDomain:
domainName: ${env:GATEKEEPER_DOMAIN_NAME}
certificateName: ${env:GATEKEEPER_CERTIFICATE_NAME}
createRoute53Record: true
enabled: ${env:GATEKEEPER_DOMAIN_ENABLED}