-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdynamo.yaml
42 lines (42 loc) · 1.12 KB
/
dynamo.yaml
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
AWSTemplateFormatVersion: 2010-09-09
Description: DynamoDB Tables for mobile-notifications
Parameters:
Stage:
Description: Environment name
Type: String
AllowedValues:
- CODE
- PROD
Resources:
mobileNotificationsReports:
Type: 'AWS::DynamoDB::Table'
Properties:
TableName: !Sub 'mobile-notifications-reports-${Stage}'
AttributeDefinitions:
- AttributeName: sentTime
AttributeType: S
- AttributeName: id
AttributeType: S
- AttributeName: type
AttributeType: S
KeySchema:
- AttributeName: id
KeyType: HASH
GlobalSecondaryIndexes:
- IndexName: sentTime-index
KeySchema:
- AttributeName: type
KeyType: HASH
- AttributeName: sentTime
KeyType: RANGE
Projection:
ProjectionType: ALL
BillingMode: PAY_PER_REQUEST
TimeToLiveSpecification:
Enabled: true
AttributeName: ttl
StreamSpecification:
StreamViewType: NEW_IMAGE
Tags:
- Key: devx-backup-enabled
Value: true