For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/ansible-aws-db-instance-storage-not-encrypted.md.
A documentation index is available at /llms.txt.
RDS instances must have storage encryption enabled to protect data at rest, including database files, automated backups, and snapshots. Without encryption, this data is exposed to unauthorized access if storage media or snapshots are compromised.
For Ansible resources using the amazon.aws.rds_instance or rds_instance modules, set storage_encrypted to true. If you are using a customer-managed key, also define kms_key_id. This rule flags instances where storage_encrypted is undefined or set to false and no kms_key_id is provided.