Reputation: 962
I noticed that in both of the following scenarios:
PutObject
to an encrypted bucket.SendMessage
to an encrypted queue.I need to have the kms:Decrypt
permission (in addition to the kms:GenerateDataKey
permission), otherwise it throws an "unauthorized" exception.
Why would that be the case?
Upvotes: 3
Views: 14139
Reputation: 2326
From AWS:
The call to kms:Decrypt is to verify the integrity of the new data key before using it. Therefore, the producer must have the kms:GenerateDataKey and kms:Decrypt permissions for the customer master key (CMK).
Upvotes: 7