Other Articles

DynamoDB Table – Enable Table Deletion Protection

This check ensures that deletion protection is enabled for Amazon DynamoDB tables. Enabling deletion protection prevents accidental or unauthorized deletion of critical data.

Check Details

  • Resource: DynamoDB Table
  • Check: Enable DynamoDB table deletion protection
  • Risk: Accidental table deletion leading to permanent data loss

Remediation via AWS Console

  1. Log in to the AWS Management Console and open the Amazon DynamoDB console. Amazon DynamoDB Console
  2. In the left navigation pane, click Tables and select the affected DynamoDB table.
  3. Open the Settings tab and locate Deletion protection. DynamoDB settings tab
  4. Click Turn on and confirm the action.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner. AWS CloudShell
  2. Enable deletion protection for the DynamoDB table:
    
    
    aws dynamodb update-table \
     --table-name <table-name> \
     --deletion-protection-enabled
    

Replace <table-name> with the name of the DynamoDB table.