Skip to content

How to get rid of AWS CloudWatch SubscriptionFilters like DD_LOG_SUBSCRIPTION_FILTER_XYZ #835

Open

Description

Describe what happened:
Our Lambdas all have CloudWatch SubscriptionFilters having names like DD_LOG_SUBSCRIPTION_FILTER_XYZ. We want to get rid of these as we are using Datadog Extension for getting the metrics (as recommended). These unnecessary SubscriptionFilters also cause issues with the very strict limit of 2 for SubscriptionFilters counts. This causes issues with pre existing SubscriptionFilters.

These DD_LOG_SUBSCRIPTION_FILTER_XYZ SubscriptionFilters seem to be coming from our AWS account level settings which have been configured via CloudFormation template from Datadog:

    new CfnStack(this, 'DatadogForwarderStack', {
      templateUrl: `https://datadog-cloudformation-template.s3.amazonaws.com/aws/forwarder/3.83.0.yaml`,
      parameters: {
        DdApiKey: 'USE_ARN',
        DdApiKeySecretArn: 'foobar',
        DdForwardLog: 'false', // We don't want to actually send logs to Datadog, just custom metrics
      },
    });

However we can not totally remove this as some of our Lambdas inside the account still use the legacy logs based metrics. But how do we omit certain Lambdas from getting polluted by these DD_LOG_SUBSCRIPTION_FILTER_XYZ?

Describe what you expected:
To be able to remove Datadog created SubscriptionFilters.

Steps to reproduce the issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions