I'm trying to allow some users to modify some secrets on AWS SecretsManager that are encrypted by using a KMS key, but I'm receiving an error like:
An error occurred (AccessDeniedException) when calling the PutSecretValue operation: Access to KMS is not allowed
So... Which permissions are required to perform this action?
Probably the Policy is not complete and requires a permission such as
kms:GenerateDataKey.This is the policy required (read permissions separated from write permission by an empty line):