Brief overview of the rule for enabling encryption on RDS instances
Rule | Ensure that encryption is enabled for RDS Instances |
Framework | cis_v150 |
Severity | ✔ Medium |
Rule Description
The rule "Ensure that encryption is enabled for RDS Instances" aims to enforce the encryption of data at rest for Amazon RDS (Relational Database Service) instances. Enabling encryption helps protect sensitive data stored in databases from potential unauthorized access.
Troubleshooting Steps
If encryption is not enabled for RDS instances, follow these troubleshooting steps:
Necessary Codes
If encryption is not already enabled for the RDS instance, you may need to run AWS CLI commands to enable it. Here are the necessary codes:
Enable Encryption for an Existing RDS Instance
aws rds modify-db-instance --db-instance-identifier <db-instance-identifier> --storage-encrypted --apply-immediately
Replace
<db-instance-identifier>
with the identifier of your RDS instance. The --apply-immediately
flag ensures that the changes take effect without any delay.Enable Encryption for a New RDS Instance
When creating a new RDS instance using AWS CLI, specify the
--storage-encrypted
flag to enable encryption. For example:aws rds create-db-instance --db-instance-identifier <db-instance-identifier> --storage-encrypted --other-parameters
Remediation Steps
If encryption is not enabled for the RDS instance, follow these step-by-step remediation instructions:
rds:ModifyDBInstance
) to modify the RDS instance.aws rds modify-db-instance --db-instance-identifier <db-instance-identifier> --storage-encrypted --apply-immediately
--storage-encrypted
flag and any other required parameters in the command, for example:
Replaceaws rds create-db-instance --db-instance-identifier <db-instance-identifier> --storage-encrypted --other-parameters
<db-instance-identifier>
with the desired identifier for the new RDS instance.Replaceaws rds describe-db-instances --db-instance-identifier <db-instance-identifier> --query 'DBInstances[0].StorageEncrypted'
<db-instance-identifier>
with the identifier of the RDS instance.Conclusion
Enabling encryption for RDS instances ensures the security of data at rest within the databases. By following the troubleshooting steps and remediation instructions provided, you can ensure that encryption is enabled for RDS instances in accordance with the CIS AWS Foundation Benchmark v1.5.0.