I have an Amazon Aurora DB cluster encrypted snapshot that's using the default AWS Key Management Service (AWS KMS) key. How can I share the encrypted snapshot with another AWS account?
Short description
You can't share a snapshot that's encrypted with the default AWS KMS key. You must create a custom AWS KMS key instead. To share an encrypted Aurora DB cluster snapshot:
- Create a custom AWS KMS key.
- Add the target account to the custom AWS KMS key.
- Create a copy of the DB cluster snapshot using the custom AWS KMS key. Then, share the newly copied snapshot with the target account.
- Copy the shared DB cluster snapshot from the target account.
Resolution
Create a custom AWS KMS key
- Log in to the source account, and then go to the AWS KMS console in the same region as the DB cluster snapshot.
- Select Customer-managed keys from the navigation pane on the side.
- Choose Create key.
- Create a symmetric encryption AWS KMS key.
- In Key usage, select Encrypt and decrypt. For information about creating AWS KMS keys that generate and then verify MAC codes, see Creating HMAC AWS KMS keys.
- In Advanced options, select AWS KMS as the key material origin.
- Select Single-region key, and then select Next.
- Give your key an alias. It is a best practice also to give your key a description and a tag. Then, select Next.
- Choose the IAM users and roles that will be allowed to administer the AWS KMS key, and then select Next.
Note: To prevent the IAM users and roles from deleting the AWS KMS key, in the Key deletion section, uncheck the Allow key administrators to delete this key check box.
- Select the IAM users and role that can use the AWS KMS key in cryptographic operations, and select Next.
Note: You also can allow other AWS accounts to use the key for cryptographic operations. For more information, see Cryptographic operations.
- Select Finish to create the AWS KMS key.
Give target account access to the custom AWS KMS key within the source account
- Log in to the source account, and go to the AWS KMS console in the same Region as the DB cluster snapshot.
- Select Customer-managed keys from the navigation pane.
- Select your custom AWS KMS key.
- From the Other AWS accounts section, select Add another AWS account, and then enter the AWS account number of your target account. For more information see, Allowing users in other accounts to use an AWS KMS key.
Copy and share the DB cluster snapshot
- Open the Amazon RDS console in the source account, and then select Snapshots from the navigation pane.
- Select the DB cluster snapshot you want to share. Select Actions, and then select Copy snapshot.
- Select the same AWS Region that your custom AWS KMS key is in, and then enter a name for the New DB Snapshot Identifier.
- In the Encryption section, select the custom AWS KMS key that you created.
- Select Copy Snapshot.
- Select the newly copied DB cluster snapshot, select Actions, and then select Share snapshot.
- In AWS account ID, enter the AWS account number of your target account, and then select Add.
- Select Save.
Copy the shared DB cluster snapshot
- Log in to the target account, and then open the Amazon RDS console.
- Choose Snapshots from the navigation pane.
- From the Snapshots pane, select the Shared with Me tab.
- Select the DB cluster snapshot that was shared.
- Select Actions. Then, select Copy Snapshot to copy the DB cluster snapshot into the same AWS Region.
The DB snapshot now has an AWS KMS key from the target account and can be used to launch the instance.
Related information
Sharing a DB cluster snapshot
Creating asymmetric AWS KMS keys
Multi-Region keys in AWS KMS
Copying a DB cluster snapshot
Sharing a snapshot