Skip to content

Commit

Permalink
Add option to enable dynamodb deletetion protection and point in time…
Browse files Browse the repository at this point in the history
… recovery
  • Loading branch information
nightfury1204 committed Mar 27, 2024
1 parent e5977ea commit 1acda16
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions provider/aws/formation/rack.json
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,18 @@
"Default": "No",
"AllowedValues": [ "Yes", "No" ]
},
"DynamoDbTableDeletionProtectionEnabled": {
"Type": "String",
"Description": "Determines if a dynamodb table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default.",
"Default": "false",
"AllowedValues": [ "true", "false" ]
},
"DynamoDbTablePointInTimeRecoveryEnabled" : {
"Type": "String",
"Description": "Indicates whether point in time recovery is enabled or disabled on the dynamodb table.",
"Default": "false",
"AllowedValues": [ "true", "false" ]
},
"EcsPollInterval": {
"Type": "Number",
"Default": "1",
Expand Down Expand Up @@ -4310,6 +4322,8 @@
{ "AttributeName": "created", "AttributeType": "S" }
],
"BillingMode": "PAY_PER_REQUEST",
"DeletionProtectionEnabled": { "Ref": "DynamoDbTableDeletionProtectionEnabled" },
"PointInTimeRecoverySpecification": { "PointInTimeRecoveryEnabled": { "Ref": "DynamoDbTablePointInTimeRecoveryEnabled" } },
"KeySchema": [ { "AttributeName": "id", "KeyType": "HASH" } ],
"GlobalSecondaryIndexes": [ {
"IndexName": "app.created",
Expand All @@ -4328,6 +4342,8 @@
{ "AttributeName": "created", "AttributeType": "S" }
],
"BillingMode": "PAY_PER_REQUEST",
"DeletionProtectionEnabled": { "Ref": "DynamoDbTableDeletionProtectionEnabled" },
"PointInTimeRecoverySpecification": { "PointInTimeRecoveryEnabled": { "Ref": "DynamoDbTablePointInTimeRecoveryEnabled" } },
"KeySchema": [ { "AttributeName": "id", "KeyType": "HASH" } ],
"GlobalSecondaryIndexes": [{
"IndexName": "app.created",
Expand Down

0 comments on commit 1acda16

Please sign in to comment.