2

I am using Cognito to get the temporary credentials for authorizing encrypt() operation of the AWS KMS service. In my IAM role policy, I have specified the authorization to encrypt operation on a specific KeyID and ListKeys operation on all resources. Still I am getting an Access Denied Acception with the error that Cognito is not authorized to perform the operation List Keys. However, when I specify the KeyId in the code and encrypt using it, I am able to do so. How is it possible that I am getting to do encrypt operation but not ListKeys ?

Edcel Cabrera Vista
  • 1,087
  • 1
  • 9
  • 29

0 Answers0