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

gefragt vor 8 Jahren1919 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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.

beantwortet vor 8 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen