-
Notifications
You must be signed in to change notification settings - Fork 0
/
dynamodb.yml
53 lines (48 loc) · 1.3 KB
/
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
AWSTemplateFormatVersion: 2010-09-09
Description: >-
Serverless Application Management Stack for BrasilVacinado DynamoDB.
Transform:
- AWS::Serverless-2016-10-31
Resources:
VaccinationIndexTable:
Type: AWS::DynamoDB::Table
DeletionPolicy: Retain
Properties:
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: iso_code
AttributeType: S
KeySchema:
- AttributeName: iso_code
KeyType: HASH
HistoricTable:
Type: AWS::DynamoDB::Table
DeletionPolicy: Retain
Properties:
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: iso_code
AttributeType: S
- AttributeName: date
AttributeType: S
KeySchema:
- AttributeName: iso_code
KeyType: HASH
- AttributeName: date
KeyType: RANGE
TimeToLiveSpecification:
AttributeName: time_to_live
Enabled: False
Outputs:
VaccinationIndexTableName:
Description: Vaccination Index table name
Value:
Ref: VaccinationIndexTable
Export:
Name: !Sub ${AWS::StackName}:VaccinationIndexTable
HistoricTableName:
Description: Historic vaccination table name
Value:
Ref: HistoricTable
Export:
Name: !Sub ${AWS::StackName}:HistoricTable