Let's say I made a mistake when typing ARN of SecretsManager secret into DD_API_KEY_SECRET_ARN.
The chain of information in DEBUG log is a little bit misleading:
- Retrieving - ok
- Found - that's not possible
- Secrets Manager read error: AccessDeniedException - I assume this is from AWS API...?
- No API key configured - actually it is, but not found :)
2023-06-23T10:42:03.581+02:00 2023-06-23 08:42:03 UTC | DD_EXTENSION | DEBUG | Retrieving DD_API_KEY_SECRET_ARN=arn:aws:secretsmanager:us-east-2:012345678901:secret:secret-datacat from secrets manager
2023-06-23T10:42:03.581+02:00 2023-06-23 08:42:03 UTC | DD_EXTENSION | DEBUG | Found arn:aws:secretsmanager:us-east-2:012345678901:secret:secret-datacat value, trying to use it.
2023-06-23T10:42:03.701+02:00 2023-06-23 08:42:03 UTC | DD_EXTENSION | DEBUG | Couldn't read API key from Secrets Manager: Secrets Manager read error: AccessDeniedException: User: arn:aws:sts::012345678901:assumed-role/role-my-lambda-use2/my-lambda-use2 is not authorized to perform: secretsmanager:GetSecretValue on resource: arn:aws:secretsmanager:us-east-2:012345678901:secret:secret-datacat because no identity-based policy allows the secretsmanager:GetSecretValue action
2023-06-23T10:42:03.701+02:00 status code: 400, request id: b507ebca-3b2d-4f6d-bf68-cb5fe57e42ad
2023-06-23T10:42:03.701+02:00 2023-06-23 08:42:03 UTC | DD_EXTENSION | ERROR | No API key configured
Let's say I made a mistake when typing ARN of SecretsManager secret into DD_API_KEY_SECRET_ARN.
The chain of information in DEBUG log is a little bit misleading: