RDS Snapshot Cross-Account Sharing
Create KMS Key and Give Access to Target Account
- Login to source AWS account and open AWS KMS console.
- Choose Customer managed keys from the navigation pane and click Create Key.
- Select Key type to Symmetric and Key usage to Encrypt and decrypt.
- Define a name to key in Alias and click Next.
- In Key administrators select Admin IAM user who can administer the AWS KMS key and click Next
- In Other AWS accounts, click Add another AWS account and add the target AWS account ID and click Next and finally click Finish.
Take Manual Snapshot and Share with Target Account
- In the source AWS account, go to RDS console.
- Select running AURORA or RDS instance.
- Click Actions and select Take snapshot option.
- Define proper name for snapshot; i.e., product-name-environment-date.
- Click the Take snapshot and wait for the snapshot to complete.
- Select the completed snapshot, click Actions and select Copy snapshot.
- Choose the same AWS Region as your current, and then define a name for New DB Snapshot Identifier.
- In the Encryption section, choose the KMS key that you created above.
- Finally click Copy snapshot and wait for the snapshot to complete.
- Select the second completed snapshot and click Actions and click Share snapshot.
- Enter target AWS account ID and click Add and finally click Save.
Restore the Snapshot in Target Account
- Login to target AWS account and open RDS console and go to Snapshot in navigation pane.
- In the Snapshots pane, select Shared with Me tab.
- Select the DB snapshot that was shared from source account.
- Click Actions and choose Copy snapshot to copy the snapshot to target account.
- Once the snapshot is copied and available in Manual tab, note down the name to be used in any restore procedure.