-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
53 lines (48 loc) · 1.01 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
service: mapitout-proxy
plugins:
- serverless-offline
- serverless-prune-plugin
- serverless-s3-sync
- serverless-cloudfront-invalidate
custom:
prune:
automatic: true
number: 20
s3Sync:
- bucketName: mapitout.iamsterdam.com
localDir: build/
acl: public-read
cloudfrontInvalidate:
- distributionId: E5M144WQ6D3CE
items:
- /index.html
- "/*"
package:
patterns:
- "!src/**"
- "!public/**"
- "!build/**"
- "!docs/**"
- "!importer/**"
- "!.circleci/**"
- "!node_modules/**"
- "functions/**"
- "node_modules/axios/**"
- "node_modules/follow-redirects/**"
- "package.json"
provider:
name: aws
runtime: nodejs16.x
stage: production
region: eu-west-1
environment:
TRAVELTIME_APP_ID: ${env:TRAVELTIME_APP_ID}
TRAVELTIME_APP_KEY: ${env:TRAVELTIME_APP_KEY}
functions:
time-map:
handler: functions/time-map.handler
events:
- http:
path: time-map
method: post
cors: true