-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
54 lines (47 loc) · 1.18 KB
/
serverless.yml
File metadata and controls
54 lines (47 loc) · 1.18 KB
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
53
54
service: code-explorer-api
provider:
name: aws
runtime: nodejs10.x
stage: dev
region: eu-west-2
functions:
request-transfer:
handler: functions/request-transfer.handler
events:
- http:
path: /request-transfer
method: get
environment:
twilio_sid: ${ssm:/cdex/prod/twilio_sid~true}
twilio_auth_token: ${ssm:/cdex/prod/twilio_auth_token~true}
twilio_phone: ${ssm:/cdex/prod/twilio_phone~true}
admin_phone: ${ssm:/cdex/prod/admin_phone~true}
payment:
handler: functions/payment.handler
events:
- http:
path: /payment
method: get
fcc-get-completed:
handler: functions/fcc-get-completed.handler
events:
- http:
path: /fcc-get-completed
method: get
plugins:
- serverless-export-env
resources:
Resources:
membersTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: members
AttributeDefinitions:
- AttributeName: name
AttributeType: S
KeySchema:
- AttributeName: name
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1