-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathserverless.yml
More file actions
49 lines (44 loc) · 1.01 KB
/
serverless.yml
File metadata and controls
49 lines (44 loc) · 1.01 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
service: lessons-api
disableSchemaValidation: true
custom:
env: ${lower(${opt:stage, self:provider.stage})}
vpcSettings:
prod:
securityGroupIds:
- sg-052314a1eec2f2567
subnetIds:
- subnet-01a6b61d749d10c46
current: ${self:custom.vpcSettings.${self:custom.env}, ""}
provider:
name: aws
runtime: nodejs22.x
memorySize: 2048
timeout: 60
region: us-east-2
iam:
role: arn:aws:iam::428019619026:role/ChurchAppsRole
environment:
APP_ENV: ${self:custom.env}
functions:
api:
handler: lambda.universal
timeout: 30
events:
- http:
path: /{proxy+}
method: ANY
- http:
path: /
method: ANY
vpc: ${self:custom.vpcSettings.current}
videoPingback:
handler: lambda.videoPingback
vpc: ${self:custom.vpcSettings.current}
zipBundles:
handler: lambda.zipBundles
vpc: ${self:custom.vpcSettings.current}
timeout: 300
events:
- schedule: rate(5 minutes)
plugins:
- serverless-plugin-utils