DynamoDB enable deletion protection for tables
tfentonz opened this issue · comments
Is your feature request related to a problem? Please describe.
The AWS Security Hub AWS Foundational Security Best Practices control [DynamoDB.6] DynamoDB tables should have deletion protection enabled reports failing checks for the instance scheduler DynamoDB tables:
- ConfigTable
- StateTable
- MaintenanceWindowTable
You can protect a DynamoDB table from accidental deletion with the deletion protection property. Enabling this property for tables helps ensure that tables don't get accidentally deleted during regular table management operations by your administrators. This helps prevent disruption to your normal business operations.
Describe the feature you'd like
Enable deletion protection for the 3 tables.
Add deletionProtection: true,
property.
Additional context
Announcement on Mar 8, 2023 Amazon DynamoDB now supports table deletion protection.
AWS CDK API Reference
- aws_dynamodb class Table (construct) deletionProtection?
Hi @tfentonz
Thanks for submitting this FR, I have added it to our backlog for consideration in an upcoming release