Hi, Im trying to create 2 tables with model relationship (one-to-many): Members and Teams. And I also want to enable the PITR in DynamoDB on production deployment with the code from https://docs.amplify.aws/react/build-a-backend/add-aws-services/deletion-backup-resources/#enabling-point-in-time-recovery-for-dynamodb-tables
I have implement it like this:
if (JSON.parse(process.env.CDK_CONTEXT_JSON || "")["amplify-backend-type"] !== "sandbox") {
const { amplifyDynamoDbTables } = backend.data.resources.cfnResources
for (const table of Object.values(amplifyDynamoDbTables)) {
table.pointInTimeRecoveryEnabled = true
}
}
However, when deploying, I have an error like this:
Received response status [FAILED] from custom resource. Message returned: Backups are being enabled for the table: Team-jbbnnfzedfesdzvdlq4tvjxka-NONE. Please retry later (RequestId: 747a78f4-4c01-4a36-83a2-42d097d91f89)
Any one know the solution or workaround for this?