Skip to content

Commit

Permalink
[Improvement] state/dynamodb - Enable point in time recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig committed Aug 7, 2019
1 parent 9cc75a3 commit 0645bac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions state/dynamodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Metadata:
- StreamViewType
- BackupRetentionPeriod
- BackupScheduleExpression
- PointInTimeRecoveryEnabled
- Label:
default: 'DynamoDB PROVISIONED Mode Parameters'
Parameters:
Expand Down Expand Up @@ -123,6 +124,11 @@ Parameters:
Description: 'A CRON expression specifying when AWS Backup initiates a backup job.'
Type: String
Default: 'cron(0 5 ? * * *)'
PointInTimeRecoveryEnabled:
Description: 'Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.'
Type: String
Default: true
AllowedValues: [true, false]
Conditions:
HasAlertTopic: !Not [!Equals [!Ref ParentAlertStack, '']]
HasSortKey: !Not [!Equals [!Ref SortKeyName, '']]
Expand Down Expand Up @@ -153,6 +159,8 @@ Resources:
KeyType: RANGE
- - AttributeName: !Ref PartitionKeyName
KeyType: HASH
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: !Ref PointInTimeRecoveryEnabled
ProvisionedThroughput: !If [HasBillingAndScalingModeProvisioned, {ReadCapacityUnits: !Ref MinReadCapacityUnits, WriteCapacityUnits: !Ref MinWriteCapacityUnits}, !Ref 'AWS::NoValue']
SSESpecification:
SSEEnabled: !If [HasAwsManagedEncryption, true, false]
Expand Down

0 comments on commit 0645bac

Please sign in to comment.