Sharing an EBS snapshot with the DR account fails because it is encrypted with the default `aws/ebs` key.
IntermediateTroubleshootingS3, EBS and EFS
Answer
Likely causes → You cannot share snapshots encrypted with the AWS managed key, because its key policy cannot be changed to grant other accounts.
Diagnose →
aws ec2 describe-snapshots --snapshot-ids snap-0abc --query 'Snapshots[].[Encrypted,KmsKeyId]'
aws kms describe-key --key-id <key-id> --query 'KeyMetadata.KeyManager' # AWS = managed key
Fix →
- Copy the snapshot and re-encrypt it with a customer managed key:
aws ec2 copy-snapshot --source-region us-east-1 --source-snapshot-id snap-0abc --encrypted --kms-key-id <cmk-arn> - Allow the DR account in the CMK key policy, then share:
aws ec2 modify-snapshot-attribute --snapshot-id snap-0new --attribute createVolumePermission --operation-type add --user-ids 222222222222 - In the DR account, copy it again with its own key
Prevent → Set EBS default encryption to a CMK (aws ec2 modify-ebs-default-kms-key-id), or use AWS Backup cross-account copy.
More on S3, EBS and EFS
`BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system.`Beginner`PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.`BeginnerA partner account uploads objects into your bucket, but your own admins get `403 Forbidden` reading them.Intermediate`aws s3 cp` gets `An error occurred (AccessDenied) when calling the GetObject operation` but the IAM policy allows `s3:GetObject` and the bucket policy is fine.IntermediateAn S3 static website endpoint returns `403 Forbidden` with `Code: AccessDenied`.IntermediateHigh-throughput writes get `503 SlowDown: Please reduce your request rate.`Intermediate