amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

Cannot create tables after dynamodb backup enabled

Open nam-truong-le opened this issue 7 months ago • 1 comments

Environment information

System:
  OS: macOS 15.3.2
  CPU: (8) arm64 Apple M3
  Memory: 123.64 MB / 24.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 22.8.0 - ~/.nvm/versions/node/v22.8.0/bin/node
  Yarn: undefined - undefined
  npm: 10.8.2 - ~/.nvm/versions/node/v22.8.0/bin/npm
  pnpm: 10.6.4 - ~/.nvm/versions/node/v22.8.0/bin/pnpm
NPM Packages:
  @aws-amplify/ai-constructs: Not Found
  @aws-amplify/auth-construct: Not Found
  @aws-amplify/backend: 1.14.3
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: Not Found
  @aws-amplify/backend-cli: 1.5.0
  @aws-amplify/backend-data: Not Found
  @aws-amplify/backend-deployer: Not Found
  @aws-amplify/backend-function: Not Found
  @aws-amplify/backend-output-schemas: Not Found
  @aws-amplify/backend-output-storage: Not Found
  @aws-amplify/backend-secret: Not Found
  @aws-amplify/backend-storage: Not Found
  @aws-amplify/cli-core: Not Found
  @aws-amplify/client-config: Not Found
  @aws-amplify/data-construct: Not Found
  @aws-amplify/data-schema: Not Found
  @aws-amplify/deployed-backend-client: Not Found
  @aws-amplify/form-generator: Not Found
  @aws-amplify/model-generator: Not Found
  @aws-amplify/platform-core: Not Found
  @aws-amplify/plugin-types: Not Found
  @aws-amplify/sandbox: Not Found
  @aws-amplify/schema-generator: Not Found
  aws-amplify: 6.13.5
  aws-cdk: 2.1005.0
  aws-cdk-lib: 2.184.1
  typescript: 5.8.2
No AWS environment variables
No CDK environment variables

Data packages

[email protected] /Users/truong/Desktop/git/al/shop-app-v2
├─┬ @aws-amplify/[email protected] -> ./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f8736c46058690b72f4717362799780d/node_modules/@aws-amplify/backend-cli
│ └─┬ @aws-amplify/[email protected] -> ./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@aws-amplify/schema-generator
│   └── @aws-amplify/[email protected] -> ./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@aws-amplify/graphql-schema-generator
└─┬ @aws-amplify/[email protected] -> ./node_modules/.pnpm/@[email protected]_@[email protected]_@aws-sdk+client-s3@3_d5feeb8f168a14355e95c12ca9c8fa40/node_modules/@aws-amplify/backend
  └─┬ @aws-amplify/[email protected] -> ./node_modules/.pnpm/@[email protected]_@[email protected][email protected]_constructs@1_98786f2488a62ef381c51d864b5c2507/node_modules/@aws-amplify/backend-data
    └── @aws-amplify/[email protected] -> ./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@aws-amplify/data-construct

Description

Hi, after I enabled point in time backup like this:

import { MyBackend } from "./definition";

export default function initData(backend: MyBackend) {
  const { amplifyDynamoDbTables } = backend.data.resources.cfnResources;
  for (const table of Object.values(amplifyDynamoDbTables)) {
    table.deletionProtectionEnabled = false;
    table.pointInTimeRecoveryEnabled = true;
  }
}

I constantly getting this error and have to retry deployments multiple times. It happens with Previews depoyments most of the times.

Message returned: Backups are being enabled for the table: Counter-jd5cuhaqbjhtraeyv5skzzedi4-NONE. Please retry later

nam-truong-le avatar Mar 22 '25 06:03 nam-truong-le