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 environment 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-ArchitectedCSA-CCMGDPRHIPAAISO-27001SOC-2
  • Snyk IDSNYK-CC-00105
  • creditSnyk 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
}