For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/terraform-aws-rds-storage-not-encrypted.md.
A documentation index is available at /llms.txt.
Amazon RDS storage encryption provides an additional layer of data protection by securing your data from unauthorized access to the underlying storage. When RDS storage is not encrypted, sensitive data stored in your databases could be exposed if the underlying storage is compromised. To properly secure your RDS clusters, set the storage_encrypted attribute to true, as shown in the secure example:
resource"aws_rds_cluster""example"{ // other configuration...
storage_encrypted=true}
Without this setting, your database is vulnerable to data exposure if physical storage media is stolen or improperly decommissioned.