- Newest
- Most votes
- Most comments
This behavior is indeed a limitation of Amazon RDS encryption functionality, though the UI could be clearer about it.
You've correctly identified that you cannot directly enable encryption when restoring from an unencrypted snapshot. According to RDS encryption limitations, you can only encrypt an RDS DB instance when you create it initially, not after it's created. Similarly, you cannot create an encrypted snapshot of an unencrypted DB instance.
The proper workflow you discovered is the correct approach:
- Create a copy of the unencrypted snapshot with encryption enabled
- Restore from that encrypted snapshot copy
This is the documented method to "effectively add encryption to an unencrypted DB instance." When the UI allows you to select "Enable Encryption" during the restore process but doesn't actually encrypt the resulting instance, it's not working as expected and could create a false sense of security.
The behavior is similar to other AWS database services like Amazon DocumentDB, which also only allows encryption to be enabled at creation time, not after a cluster has been created.
Your concern about this potentially leading to security issues is valid. Users might believe their restored databases are encrypted when they're not. It would be better if the UI either disabled the encryption option for unencrypted snapshots or provided a clear warning that encryption cannot be enabled during this operation and directed users to the proper workflow.
The workaround you've identified (copying the snapshot with encryption enabled first) is the correct approach and aligns with AWS documentation on how to add encryption to previously unencrypted RDS resources.
Sources
Encrypting Amazon RDS resources - Amazon Relational Database Service
Encrypting Amazon DocumentDB data at rest - Amazon DocumentDB
Hello.
What do you think about giving some UI-related feedback?
You can send feedback about the UI by opening the RDS console and clicking "Feedback" in the bottom left corner of the screen.
Relevant content
asked 4 years ago
