DataDog / cloudformation-template

Easily set up the Datadog AWS integration using CloudFormation
Apache License 2.0
34 stars 43 forks source link

Missing permission logs:describeloggroups caused Lambda panel to show an error #27

Closed winjer closed 2 years ago

winjer commented 2 years ago

Expected Behavior

Amazon Lambda integration panel says it is working

Actual Behavior

Amazon Lambda integration panel says it is broken

image

Steps to Reproduce the Problem

  1. Just literally have an Amazon Lambda integration

Specifications

This is related to #20

The logs:describeloggroups permission is not granted.

this is reported as an error:

image

To be clear I am not really bothered about the permission, but I am bothered that something is showing broken when it is not.

tianchu commented 2 years ago

@winjer this permission is only used by a deprecated feature for submitting custom metrics from Lambda functions https://docs.datadoghq.com/serverless/custom_metrics/#deprecated-cloudwatch-logs. The feature was disabled 2019, but left on for existing customers. Can you DM me your Datadog organization name through our slack community https://chat.datadoghq.com/? I can take a quick look on whether you were using this feature or not, if not, I can disable it for you., which would stop the noise (permission error).

tianchu commented 2 years ago

I'm going to close this issue, since most of customers (especially new customers) won't need this permission, and we are not going to make code changes in this repo. But as mentioned previously, people running into this error, can either contact support@datadoghq.com or reach out to me or #serverless channel in our community Slack to disable the feature and get rid of the noise.