From ebef14221f23097666d5d724a0071b8c7623e76f Mon Sep 17 00:00:00 2001 From: Carsten Koch Date: Thu, 31 Oct 2024 18:30:50 +0100 Subject: [PATCH] fix: create tables without backup --- amplify/backend.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/amplify/backend.ts b/amplify/backend.ts index ace9aacdc..22fbbac59 100644 --- a/amplify/backend.ts +++ b/amplify/backend.ts @@ -21,7 +21,14 @@ if (backendType !== "sandbox") { * issues when enabled right from the get-go and Amplify deployments fail. */ // const { PersonRelationship: _pr, ...restTables } = amplifyDynamoDbTables; - Object.values(amplifyDynamoDbTables).forEach((table) => { + const { + MrrDataUpload: _du, + Month: _m, + PayerAccountMrr: _pam, + ...restTables + } = amplifyDynamoDbTables; + // Object.values(amplifyDynamoDbTables).forEach((table) => { + Object.values(restTables).forEach((table) => { table.pointInTimeRecoveryEnabled = true; table.deletionProtectionEnabled = true; table.applyRemovalPolicy(RemovalPolicy.RETAIN);