RDS instance 'Deletion Protection' is not enabled Affecting RDS service in AWS


Severity

0.0
medium
0
10
    Severity Framework
    Snyk CCSS
    Rule category
    Data / Access

Is your enviroment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
    Frameworks
    AWS-Well-Architected CSA-CCM GDPR HIPAA ISO-27001 SOC-2
  • Snyk ID SNYK-CC-00105
  • credit Snyk Research Team

Description

Enabling deletion protection ensures that any user or anonymous user can't accidentally or intentionally delete your database.

How to fix?

Set the aws_db_instance deletion_protection field to true.

Example Configuration

resource "aws_db_instance" "example" {
  deletion_protection = true
  # other required fields here
}