kms:GrantIsForAWSResource
Allows or denies permission for the
CreateGrant,ListGrants, orRevokeGrantoperations only when an AWS services integrated with KMS calls the operation on the user's behalf.This policy condition doesn't allow the user to call these grant operations directly.
The following example key policy statement uses the
kms:GrantIsForAWSResourcecondition key.It allows AWS services that are integrated with KMS, such as EBS, to create grants on this CMK on behalf of the specified user.
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::111122223333:user/ExampleUser"
},
"Action": "kms:CreateGrant",
"Resource": "*",
"Condition": {
"Bool": {
"kms:GrantIsForAWSResource": true
}
}
}Last updated
Was this helpful?