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

質問済み 8年前1919ビュー
1回答
0
承認された回答

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.

回答済み 8年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ