forked from krysttian/ftw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
50 lines (43 loc) · 1.21 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
service:
name: drivefine
custom:
secrets: ${file(secrets.json)}
webpack:
includeModules:
forceInclude:
- pg
provider:
name: aws
runtime: nodejs10.x
memorySize: 256 # Overwrite the default memory size. Default is 1024
timeout: 6 # optional, in seconds, default is 6
environment:
NODE_ENV: ${self:custom.secrets.NODE_ENV}
DATABASE_URL: ${self:custom.secrets.DATABASE_URL}
MIAMI_DADE_COUNTY_AUTH_KEY: ${self:custom.secrets.MIAMI_DADE_COUNTY_AUTH_KEY}
TWILIO_CLIENT_ID: ${self:custom.secrets.TWILIO_CLIENT_ID}
TWILIO_AUTH_KEY: ${self:custom.secrets.TWILIO_AUTH_KEY}
vpc:
securityGroupIds:
- ${self:custom.secrets.SECURITY_GROUP1_ID}
# - ${self:custom.secrets.SECURITY_GROUP2_ID}
subnetIds:
- ${self:custom.secrets.SUBNET1_ID}
- ${self:custom.secrets.SUBNET2_ID}
# - ${self:custom.secrets.SUBNET4_ID}
# Add the serverless-webpack plugin
plugins:
- serverless-webpack
- serverless-offline
functions:
migrate:
handler: handler.migrate
subscription:
handler: handler.subscription
events:
- http:
path: subscription
method: post
cors: true
rundlReports:
handler: handler.rundlReports