-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
40 lines (36 loc) · 901 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
service: doing-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:
api:
handler: lambda.universal
events:
- http: ANY {proxy+}
- http: ANY /
vpc: ${self:custom.vpcSettings.current}
nightly:
handler: lambda.nightly
vpc: ${self:custom.vpcSettings.current}
plugins:
- serverless-layers
- serverless-plugin-utils