aws-solutions / instance-scheduler-on-aws

A cross-account and cross-region solution that allows customers to automatically start and stop EC2 and RDS Instances

Home Page:https://aws.amazon.com/solutions/implementations/instance-scheduler-on-aws/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Hi @tfentonz

Thanks for submitting this FR, I have added it to our backlog for consideration in an upcoming release