Delete all records in DynamoDB

0

A customer is asking what and when an API can be released to delete ALL records within a DynamoDB table? Also, if they manage to create and drop the entire table intentionally from app, how they can take care of the related "Alert".

asked 8 years ago1902 views
1 Answer
0
Accepted Answer

DynamoDB tables are truly only provisioned where a user needs to worry about the keys/Indices involved. My recommendation would be to delete the table, and re-provision it using a CloudFormation template for consistency.

I have a hunch that this customer is very used to classic relational databases, and doesn't have as much experience with NoSQL implementations like DynamoDB.

I would consider tuning IAM permissions for the application to not allow deletion of the table itself to protect against accidental total deletion.

Additionally, I believe it is possible to create a CloudWatch alert that would fire on any deleted tables in a production environment.

answered 8 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions