From 8c882ddaae1a1cb970cf5cc5c45ce7320246d91c Mon Sep 17 00:00:00 2001 From: John Losito Date: Fri, 12 Apr 2024 17:12:53 -0400 Subject: [PATCH] fix: enable pitr for dynamo tables --- lib/my-amazon-q-slack-bot-stack.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/my-amazon-q-slack-bot-stack.ts b/lib/my-amazon-q-slack-bot-stack.ts index f076b77..d49278b 100644 --- a/lib/my-amazon-q-slack-bot-stack.ts +++ b/lib/my-amazon-q-slack-bot-stack.ts @@ -54,6 +54,7 @@ export class MyAmazonQSlackBotStack extends cdk.Stack { name: 'channel', type: AttributeType.STRING }, + pointInTimeRecovery: true, timeToLiveAttribute: 'expireAt', removalPolicy: cdk.RemovalPolicy.DESTROY }); @@ -64,6 +65,7 @@ export class MyAmazonQSlackBotStack extends cdk.Stack { name: 'messageId', type: AttributeType.STRING }, + pointInTimeRecovery: true, timeToLiveAttribute: 'expireAt', removalPolicy: cdk.RemovalPolicy.DESTROY });