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".

demandé il y a 8 ans1919 vues
1 réponse
0
Réponse acceptée

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.

répondu il y a 8 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions