Closed andrewkruse closed 1 year ago
I came here to request the exact same thing, this would greatly improve the usability of the namespace filtering feature
Hi there, thanks for raising this feature request. The datasource will be available in the next terraform release, tentatively scheduled for a month from now.
When turning on the AWS integration, we want to disable everything we aren't expecting to monitor with Datadog as we have a suspicion this will help reduce pricing impact. Unfortunately, getting the namespace rules is a chore. With the lack of a data source to provide it, there is no trivial way to do it.
Option 1: use terraform with HTTP to request it and format it. Not great since we can't creep on the configuration of the provider (i.e. provider.datadog.api_key, provider.datadog.app_key, provider.datadog.api_url). This requires adding arbitrary variables for configuration items that were environment variables already (i.e. duplicating DD_API_KEY to TF_ENV_DD_API_KEY).
Option 2: get it at a point in time and copy/paste it. I suspect in the future as new things show up they will be auto enabled. Not super great, but probably not the end of the world.
Terraform Configuration Files