- Newest
- Most votes
- Most comments
Hello.
I suspect the root cause is a kms:CreateGrant denial issued by the AWSServiceRoleForBackup on the destination side. You should specifically verify the conditions if a custom EncryptionContextSubset condition has been added to the destination key policy.
The documentation for cross-account snapshot copying for RDS/Aurora itself explicitly states that, for encrypted snapshots, the source KMS key policy must grant kms:CreateGrant permission to the destination account.
I recommend starting with a slightly broader KMS key policy, and once it works, gradually adding conditions to restrict it while testing.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CopyDBClusterSnapshot.CrossAccount.html
Is the omission of requestParameters on CreateGrant AccessDenied events for a service-linked role such as AWSServiceRoleForBackup expected CloudTrail behavior? If so, what is the supported way for a customer to obtain the denied request detail (target key, grantee principal, requested operations, grant constraints, evaluated kms:ViaService)?
I searched the AWS documentation, but I couldn't find any mention of the specification where requestParameters are omitted due to an AccessDenied error involving AWSServiceRoleForBackup.
The destination key policy already grants the data-key generation and CreateGrant KMS actions and constrained kms:CreateGrant to the destination AWSServiceRoleForBackup, only through rds in the home region, with GrantIsForAWSResource and EncryptionContextSubset conditions. For an Aurora cross-account copy, should that CreateGrant grant be on the destination vault key, the source cluster key, or both? Which key does AWSServiceRoleForBackup call CreateGrant against during this operation?
Both KMS keys could be involved, but without checking details such as resources[].ARN in CloudTrail, it is impossible to definitively determine which key the CreateGrant call—issued by the destination account's AWSServiceRoleForBackup—is targeting.
Relevant content
asked 2 years ago
asked 3 years ago
asked 5 years ago
- AWS OFFICIALUpdated a year ago
