-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
54 lines (48 loc) · 1.18 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
51
52
53
org: jakec
app: sydtransit
service: sydtransitservice
provider:
name: aws
runtime: nodejs12.x
memorySize: 3008
stage: dev
region: ap-southeast-2
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:GetObject"
Resource:
- "arn:aws:s3:::sydney-bus-visualisation/*"
functions:
backend:
handler: dist/lambda.handler
events:
- http:
path: / # this matches the base path
method: ANY
cors: true # <-- CORS!
- http:
path: /{any+} # this matches any path, the token 'any' doesn't mean anything special
method: ANY
cors: true
package: # Optional deployment packaging configuration
include: # Specify the directories and files which should be included in the deployment package
- dist/**
exclude:
- cache/**
- database/**
- data/**
- rust/**
- downloads/**
- src/**
- scripts/**
- temp/**
- server/**
plugins:
- serverless-plugin-include-dependencies
- serverless-api-gateway-throttling
custom:
# Configures throttling settings for all http endpoints
apiGatewayThrottling:
maxRequestsPerSecond: 100
maxConcurrentRequests: 100