Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to encrypt my existing RDS Instance using Boto3?

I want to encrypt my existing rds instance.I am using the Boto Script to modify db instance.

modified_rds_attributes = rds_conn_boto3.modify_db_instance(
    DBInstanceIdentifier=id,
    StorageEncrypted=True
)

Is it possible to encrypt existing RDS DB Instance? If Yes,then how can I acheive the task?

like image 370
tom Avatar asked Sep 02 '25 18:09

tom


1 Answers

I agree that "A non encrypted instance cannot be converted to an encrypted one." However , I disagree that there is one way to do the mission.

Another way is to :

  1. take a snapshot from the unencrypted instance.

  2. copy the snapshot by specifying a Key Management System (KMS) encryption key

  3. then restore a new encrypted instance from snapshot

__

Reference https://aws.amazon.com/blogs/aws/amazon-rds-update-share-encrypted-snapshots-encrypt-existing-instances/

like image 71
Abdennour TOUMI Avatar answered Sep 04 '25 18:09

Abdennour TOUMI