Skip to content

AWS RDS cluster delete protection is disabled

Description

Enabling deletion protection on Amazon Relational Database Service (RDS) clusters and instances can help to prevent accidental deletion. When deletion protection is enabled, you cannot delete the RDS cluster or instance using the AWS Management Console, the AWS CLI, or the RDS API. This can be helpful if you want to ensure that your RDS resources are not deleted accidentally, either by yourself or by someone else with access to your AWS account.

Code Example

go
resource "aws_rds_cluster" "default" {
  ...
+ deletion_protection = true
}

Remediation

Terraform

  • Resource: aws_rds_cluster
  • Arguments: deletion_protection

Rule Details

FieldValue
IDIAC-0189
SeverityINFO
IaC TypeTerraform
FrameworksTerraform, TerraformPlan
Checkov IDCKV_AWS_139

References