Wondering how to share an encrypted Amazon RDS DB Snapshot with another account? We can help you.
Here, at Bobcares, we assist our customers with several AWS queries as part of our AWS Support Services.
Today, let us see how to share an encrypted snapshot with another AWS account.
Share an Encrypted Amazon RDS DB Snapshot with Another Account
First and foremost, we need to know that we can’t share an encrypted snapshot using the default AWS KMS encryption key.
- To do so, we need to add the target account to a custom KMS key.
- Then we need to copy the snapshot using the customer-managed key and then share it with the target account.
- Eventually, copy the shared DB snapshot from the target account.
Allow access to target account on the customer master key of the source account
- We log in to the source account, open the AWS KMS console in the same AWS Region as the DB snapshot.
- From the navigation pane, we select Customer managed keys.
- Then we select the name of the key or select Create key to create one.
- In the Key administrator’s section, we add the AWS IAM users and roles who can administer the AWS KMS key.
- Then in the Key user’s section, we add the IAM users and roles who can use the customer master key (CMK) to encrypt and decrypt data.
- In the Other AWS accounts section > Add another AWS account > enter the AWS account number of the target account.
Copy and share the snapshot
- In the Amazon RDS console, we select Snapshots.
- We select the name of the snapshot we create >Actions > Copy Snapshot.
- Then we select the same AWS Region that the KMS key is in, and then enter a New DB Snapshot Identifier.
- In the Encryption section, we select the KMS key > Copy Snapshot.
- Later we can share the copied snapshot with the target account.
Copy the shared DB snapshot
- Initially, we log in to the target account and open the Amazon RDS console.
- From the navigation pane, we select Snapshots.
- From there, we select the Shared with Me tab.
- Here, we can select the DB snapshot that was shared.
- Then we go to, Actions > Copy Snapshot to copy the snapshot into the same AWS Region and with a KMS key from the target account.
Once done, we can use the copy to launch the instance.
[Stuck between any of the above? We are available 24*7]
Conclusion
In short, we saw how our Support Techs go about sharing an encrypted Amazon RDS DB Snapshot.
0 Comments