-
Notifications
You must be signed in to change notification settings - Fork 17
/
serverless-dynamodb.yml
61 lines (53 loc) · 1.44 KB
/
serverless-dynamodb.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
54
55
56
57
58
59
60
61
service: remote-patient-monitoring-dynamoDb
# app and org for use with dashboard.serverless.com
#app: your-app-name
provider:
name: aws
runtime: nodejs12.x
# you can overwrite defaults here
stage: ${opt:stage, self:custom.defaultStage}
region: ap-northeast-1
# 中略
environment:
Bucket: ${file(./config/${self:provider.stage}.json):Bucket}
DBPrefix: ${file(./config/${self:provider.stage}.json):DBPrefix}
apiGateway:
shouldStartNameWithService: true
# you can add packaging information here
package:
# include:
# - include-me.js
# - include-me-dir/**
${file(./templates/exclude-files.yml)}
#functions:
# functionsは記載しない
# you can add CloudFormation resource templates here
resources:
- ${file(./templates/dynamodb.yml)}
- ${file(./templates/iam.yml)}
plugins:
- serverless-pseudo-parameters
- serverless-dynamodb-local
- serverless-offline
custom:
defaultStage: dev
dynamodb:
stages:
- dev
start:
port: 8000
inMemory: true
migrate: true
seed: true
seed:
development:
sources:
- table: RemotePatientMonitoring-CenterTable-dev
sources:
- ./migrations/centers.json
- table: RemotePatientMonitoring-NurseTable-dev
sources:
- ./migrations/nurses.json
- table: RemotePatientMonitoring-PatientTable-dev
sources:
- ./migrations/patients.json