-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
46 lines (46 loc) · 1.17 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
# Serving HTML through API Gateway for AWS Lambda
service: pelias-stitch
provider:
name: aws
runtime: nodejs20.x
vpc:
securityGroupIds:
- ${self:custom.secrets.LAMBDA_EXEC_SG}
subnetIds:
- ${self:custom.secrets.LAMBDA_EXEC_SUBNET}
environment:
GEOCODERS: ${self:custom.secrets.GEOCODERS}
BACKUP_GEOCODERS: ${self:custom.secrets.BACKUP_GEOCODERS}
BUGSNAG_NOTIFIER_KEY: ${self:custom.secrets.BUGSNAG_NOTIFIER_KEY}
COORDINATE_COMPARISON_PRECISION_DIGITS: ${self:custom.secrets.COORDINATE_COMPARISON_PRECISION_DIGITS, 4}
CHECK_NAME_DUPLICATES: ${self:custom.secrets.CHECK_NAME_DUPLICATES, true}
package:
patterns:
- pois.json
custom:
secrets: ${file(env.yml)}
functions:
autocomplete:
handler: handler.autocomplete
events:
- http:
method: get
cors: true
path: autocomplete
search:
handler: handler.search
events:
- http:
method: get
cors: true
path: search
reverse:
handler: handler.reverse
events:
- http:
method: get
cors: true
path: reverse
plugins:
- serverless-plugin-typescript
- serverless-offline