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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠