- Newest
- Most votes
- Most comments
When DynamoDB tables are deleted, they don't automatically get recreated upon redeployment. Here are some approaches to recreate your tables:
-
If you're using Amplify CLI, you can try running
amplify pushto redeploy your backend resources, which should recreate the deleted tables based on your Amplify configuration. -
If that doesn't work, you may need to update your Amplify configuration:
- Run
amplify update storageto modify your DynamoDB configuration - Make a small change to force recreation of the resources
- Then run
amplify pushagain
- If you're still having issues, you could try removing the storage resource completely:
- Run
amplify remove storage - Then add it back with
amplify add storage - Finally, push the changes with
amplify push
- As a last resort, you could delete the entire Amplify app and recreate it:
- Back up any important configuration
- Delete the app from the Amplify console
- Run
amplify initto create a new project - Reconfigure your resources
- Deploy with
amplify push
When DynamoDB tables are deleted with Point-in-Time Recovery (PITR) enabled, the system creates a backup snapshot at deletion time, but this doesn't automatically recreate the tables. You would need to explicitly restore from that backup if needed, but since you mentioned you don't have valuable data, recreating fresh tables is likely the better approach.
Sources
Do You Lose PITR for a Deleted DynamoDB Table? | AWS re:Post
Point in Time Recovery on Deleted Tables | AWS re:Post
Use DeleteTable with an AWS SDK or CLI - Amazon DynamoDB
answered a year ago
Relevant content
- AWS OFFICIALUpdated 4 years ago
