6 Easy steps for sharing AWS Encrypted RDS snapshot between two accounts.
Tags: aws, devops, sre, mysql
Published: 2021-05-29 08:20:37


This is a hassle-free guide to share AWS Encrypted RDS across two different AWS accounts within 7 easy steps.

![Photo by [Paweł Czerwiński](https://unsplash.com/@pawel_czerwinski?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)](https://cdn-images-1.medium.com/max/11182/0*sdNr-kOmJ9ffmUQw)

### **Overview**

 1. Login to the **Source Account**, Create a snapshot from RDS.

 2. **Creating KMS Key** (with details of the destination account)

 3. After the snapshot is created, Create a new copy of the snapshot & attach the KMS key.

 4. Share the newly created snapshot to the destination account.

 5. Log in to the **Destination Account, **head over to **Shared with me **snapshots, and create a new copy of the snapshot.

6. Restore the copied Snapshot into a new RDS Instance.

## Changes at the Source Account

### 1. Create Snapshot

Log in to the source AWS Account which contains the source Database and create a snapshot from it.

![Click on Action > Take snapshot](https://cdn-images-1.medium.com/max/4596/1*47VEJMchAkq3lhU0cF6OLg.png)

![Enter the name for the snapshot and create snapshot](https://cdn-images-1.medium.com/max/2840/1*qZGG4hNQh9EkXpditZ1XMg.png)

Cannot share an Encrypted Snapshot straight away.

Click on Share Snapshot, we can see that we cannot directly share the snapshot. For that, we have the KMS key to the rescue.

![](https://cdn-images-1.medium.com/max/2804/1*Vwi-ZYTIO4oMYqNNwrnSgA.png)

### 2. Create KMS Key

Open Key Management Service ([KMS](https://console.aws.amazon.com/kms/home))

Create a Symmetric key, and add a label along with permission.

![](https://cdn-images-1.medium.com/max/3980/1*bfJevJ9C8XbGEqiKTiqn-w.png)

Enter the AWS Account ID and save the KMS key.

![](https://cdn-images-1.medium.com/max/3372/1*-_T1Czf6ly99cEwbV6cniA.png)

### 3. Create a Copy of the Snapshot

Once the snapshot is created, Select Snapshot, Click Actions > Copy Snapshot

![](https://cdn-images-1.medium.com/max/5376/1*e_U2U_4HWO5YvZ2i8HAcRw.png)

Provide a name & select the newly create KMS key under the Master key

![](https://cdn-images-1.medium.com/max/2240/1*P8Mnha4sKoKW8XYeTNE3cQ.png)

### 3. Share Snapshot with Destination account

Once the Copy of the snapshot is created, click on Actions > Share snapshot

![](https://cdn-images-1.medium.com/max/2000/1*-tVDQ2CbQ0kZp61zo0K-Sw.png)

Provide the AWS Account key and click Save.

![](https://cdn-images-1.medium.com/max/2140/1*Epgh4zqEuhEkd9K7IIQYEw.png)

## Changes at the Destination Account

### 1. Import the Shared snapshot

Snapshot which we have shared from the source account will be available in the Shared with me tab under the snapshot window for AWS RDS.

Create a Copy of Snapshot click on Actions > Copy snapshot

![](https://cdn-images-1.medium.com/max/5760/1*I8t5dZg0TlGToS5IK8V97g.png)

### 2. Restore the Shared snapshot into RDS

Once the Copy of the share snapshot is created we can Restore the snapshot.

Select the Snapshot, Click on Actions > Restore Snapshot

![](https://cdn-images-1.medium.com/max/2000/1*ZsquEoZdNitE4HjUIyMArQ.png)

![](https://cdn-images-1.medium.com/max/2220/1*7G3QoEZZS71WVDJINZdhMw.png)

Provide the Details for the new RDS instance and there we go!!.
> # “if you found this article useful, feel free to show some ❤️ and click on ❤️ many times or share it with your friends. Also follow us for more DevOps content”