generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
bug🐛 An issue with the system🐛 An issue with the system
Description
Describe the Bug
If the datadog api key is stored in ASM, the lambda role IAM policy requires kms:Decrypt privileges for the CMK used to encrypt the api key.
Expected Behavior
The lamba function should be able to read the datadog api key from ASM.
Steps to Reproduce
Add DD api key to ASM and use this module to create the forwarder lambda function. Without adding
{
"Sid": "AllowKMS",
"Effect": "Allow",
"Action": "kms:Decrypt",
"Resource": [
"<cmk arn>"
]
}
to the lamba role policy, the function throws the following error:
[ERROR] ClientError: An error occurred (AccessDeniedException) when calling the GetSecretValue operation: Access to KMS is not allowed
Metadata
Metadata
Assignees
Labels
bug🐛 An issue with the system🐛 An issue with the system