[BUG] Missing secretsmanager:GetSecretValue
permission unclear when using DD_API_KEY_SECRET_ARN
with the AWS Lambda Extension
#16927
Labels
Agent Environment
Latest extension layer version 42 (
arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Extension:42
): https://github.com/DataDog/datadog-lambda-extension/releases/tag/v42Describe what happened:
I am using the
DD_API_KEY_SECRET_ARN
environment variable for my lambda function to secure our Datadog API key. However, I forgot to grant the lambdasecretsmanager:GetSecretValue
on that secret (see also DataDog/datadog-cdk-constructs#174).However, the logs from the extension make it challenging to figure out what's wrong:
Previous versions (I tried layer version 30) expose the actual error. This is how I figured out what the problem was.
Describe what you expected:
I expected the SecretsManager failure to be exposed in the logs so I could more easily recover from the issue.
Steps to reproduce the issue:
DD_API_KEY_SECRET_ARN
to the ARN from step 1.secretsmanager:GetSecretValue
to the Lambda function.The Lambda function will time out. In the logs (see example above), you'll see no indication of the missing
GetSecretValue
permission.Additional environment details (Operating System, Cloud provider, etc):
Lambda, Node 18
The text was updated successfully, but these errors were encountered: