Help

Restore a shared snapshot

Copy the snapshot Washery shared with your account, then restore it. The default key is enough.

For a masked copy with the output "Share a snapshot". Washery deletes the shared snapshot after 7 days, so copy it to your account first.

Steps

  1. Sign in to the destination account, in the Region of the snapshot.
  2. In RDS, open Snapshots, then Shared with me. Select the snapshot and choose Copy snapshot. Leave the encryption key as the default, aws/rds.
  3. When the copy is available, select it and choose Restore snapshot.

With the AWS CLI

The run page in Washery shows this command filled in for your run.

aws rds copy-db-snapshot --region <region> \
  --source-db-snapshot-identifier <shared snapshot ARN> \
  --target-db-snapshot-identifier <name for your copy> \
  --kms-key-id alias/aws/rds

For Aurora, use copy-db-cluster-snapshot with --source-db-cluster-snapshot-identifier and --target-db-cluster-snapshot-identifier.

Encryption keys

  • You do not need to create a KMS key. The default aws/rds key in the destination account is enough to copy and restore.
  • Use a key you manage only if you will share your copy with another account. A copy under aws/rds cannot be shared.
  • To create one, open KMS, then Customer managed keys, then Create key. Choose a symmetric key in the Region of the snapshot, give the people who copy and restore use of it, and pass its ARN as --kms-key-id.

Permissions

The shared snapshot is encrypted with the Washery delivery key in your source account. Only your destination accounts can use it. In the destination account, the role that copies the snapshot needs these permissions. An administrator role has them already.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["rds:CopyDBSnapshot", "rds:CopyDBClusterSnapshot", "rds:DescribeDBSnapshots", "rds:DescribeDBClusterSnapshots"],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": ["kms:Decrypt", "kms:DescribeKey", "kms:CreateGrant", "kms:ReEncrypt*"],
      "Resource": "<delivery key ARN, shown on the snapshot as its KMS key>"
    }
  ]
}

If the copy fails

  • KMSKeyNotAccessibleFault or access denied. The role lacks the KMS permissions above, or the account is not a destination of this copy.
  • The snapshot is not under Shared with me. Check the Region and the account. Washery shares it in the Region of the source database, with the destination account only.

Related

Still stuck

Tell us what you were doing and what you saw.

Email support@washery.io