Skip to content

Commit

Permalink
Merge pull request #225 from cabcookie:fix-table-backup-issues
Browse files Browse the repository at this point in the history
fix: create tables without backup
  • Loading branch information
cabcookie authored Oct 31, 2024
2 parents 7023c14 + ebef142 commit 5031765
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion amplify/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5031765

Please sign in to comment.