-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
35 lines (33 loc) · 749 Bytes
/
serverless.yml
File metadata and controls
35 lines (33 loc) · 749 Bytes
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
service: mind-mapper
provider:
name: aws
runtime: nodejs12.x
stage: prod
region: eu-west-2
usagePlan:
quota:
limit: 100000
period: MONTH
throttle:
burstLimit: 100
rateLimit: 250
environment:
DB_HOSTNAME: ${ssm:/mind_mapper_db_hostname~true}
DB_USERNAME: ${ssm:/mind_mapper_db_username~true}
DB_PASSWORD: ${ssm:/mind_mapper_db_password~true}
DB_DATABASE: mind-mapper
functions:
fetchMap:
handler: src/functions/fetchMap.handler
events:
- http:
path: maps/{mapId}
method: get
cors: true
upsertMap:
handler: src/functions/upsertMap.handler
events:
- http:
path: maps/{mapId}
method: put
cors: true