-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
43 lines (39 loc) · 990 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
43
service: messaging-api
custom:
serverless-layers:
dependenciesPath: ./package.json
layersDeploymentBucket: "lcs-layers"
env: ${lower(${opt:stage, self:provider.stage})}
vpcSettings:
prod:
securityGroupIds:
- sg-052314a1eec2f2567
subnetIds:
- subnet-01a6b61d749d10c46
current: ${ternary( ${self:custom.env}, prod, ${self:custom.vpcSettings.prod}, ~ )}
provider:
name: aws
runtime: nodejs18.x
memorySize: 1024
timeout: 10
region: us-east-2
iam:
role: arn:aws:iam::428019619026:role/ChurchAppsRole
environment:
APP_ENV: ${self:custom.env}
functions:
web:
handler: LambdaEntry.handleWeb
events:
- http: ANY {proxy+}
- http: ANY /
vpc: ${self:custom.vpcSettings.current}
socket:
handler: LambdaEntry.handleSocket
events:
- websocket: $default
- websocket: $disconnect
vpc: ${self:custom.vpcSettings.current}
plugins:
- serverless-layers
- serverless-plugin-utils