forked from MarkBiesheuvel/demo-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yml
60 lines (57 loc) · 1.43 KB
/
template.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
---
AWSTemplateFormatVersion: '2010-09-09'
Description: A DynamoDB to store songs
Resources:
Table:
Type: AWS::DynamoDB::Table
Properties:
TableName: Music # Hardcoded name
BillingMode: PAY_PER_REQUEST
KeySchema:
-
AttributeName: Artist
KeyType: HASH
-
AttributeName: Song
KeyType: RANGE
AttributeDefinitions:
-
AttributeName: Artist
AttributeType: S
-
AttributeName: Song
AttributeType: S
-
AttributeName: Year
AttributeType: S
GlobalSecondaryIndexes:
-
IndexName: Year-Song-index # Hardcoded name
KeySchema:
-
AttributeName: Year
KeyType: HASH
-
AttributeName: Song
KeyType: RANGE
Projection:
ProjectionType: KEYS_ONLY
-
IndexName: Song-Artist-index # Hardcoded name
KeySchema:
-
AttributeName: Song
KeyType: HASH
-
AttributeName: Artist
KeyType: RANGE
Projection:
ProjectionType: INCLUDE
NonKeyAttributes:
- Album
- Preview
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: True
SSESpecification:
SSEEnabled: True
SSEType: KMS