1 Answer
- Newest
- Most votes
- Most comments
0
For Amazon DocumentDB clusters, as you correctly mentioned encryption at rest can only be enabled at the time of cluster creation and cannot be modified afterwards. However, you can migrate your unencrypted cluster to an encrypted one using the following approach:
Migration Process
- Create a new Amazon DocumentDB Elastic Cluster with encryption enabled
- Use AWS Database Migration Service (DMS) to migrate data from your unencrypted cluster to the new encrypted cluster.
Hope this helps. Thanks!
answered 9 months ago
Relevant content
- asked 4 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a month ago

I already tried it, but when I created the cluster with encryption enabled, it actually didn't have the encryption enabled in the database encryption status. I'm not sure. Is it a glitch or something else?!!
Are you using Console or CLI? Clusters that you create using the console have encryption at rest enabled by default. Clusters that you create using the AWS CLI have encryption at rest disabled by default. Therefore, you must explicitly enable encryption at rest using the --storage-encrypted parameter. Also, please ensure you're using a symmetric encryption KMS key, as Amazon DocumentDB does not support asymmetric KMS keys. If you've followed these steps correctly and still don't see encryption enabled, you should Verify your IAM permissions include access to the KMS key. If none of this helps, contact AWS Support as this might be unexpected behavior. Thanks!
Thanks for the response, Actually, I followed the AWS documentation, which describes the same what you mentioned. so I considered all this points while creating the DB cluster, I've created this database from the console, but the thing is, I don't see "Yes" in the Encrypted column or anywhere in the description that ensures that the database is encrypted. How can I ensure that this database is encrypted now?
Thank you for confirming. Can you please try to verify the encryption details using the following AWS CLI command: aws docdb-elastic describe-cluster In the output we are looking for the "StorageEncrypted" field to see if its true or false. If its false, that means its not encrypted, and since you have done from Console, it should have been encrypted. This means something went wrong during the cluster creation process. I would recommend trying again to create a new cluster. https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-view-details.html
Hello, If the answer was satisfactory to you please consider marking it as accepted. Thanks!