-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
47 lines (44 loc) · 1.11 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
service: litebans-serverless
frameworkVersion: '2'
# Note: custom domain and API throttling must be set up from the AWS console
provider:
name: aws
runtime: nodejs14.x
lambdaHashingVersion: '20201221'
region: us-east-2
stackName: l4c-litebans-serverless
apiName: l4c-litebans-serverless
memorySize: 256
httpApi:
cors:
allowedOrigins:
- http://localhost:3000
- https://main.d1zz1o7pgiektr.amplifyapp.com
- https://left4craft.org
- https://www.left4craft.org
vpc: # Optional VPC. But if you use VPC then both subproperties (securityGroupIds and subnetIds) are required
securityGroupIds:
- sg-053b09ebbefb4f00f
subnetIds:
- subnet-8c6241f6
- subnet-24921968
- subnet-9146acfa
functions:
router:
handler: handler.route
events:
- httpApi:
path: /
method: get
- httpApi:
path: /list
method: get
- httpApi:
path: /check
method: get
- httpApi:
path: /history
method: get
- httpApi:
path: /info
method: get