DataDog / terraform-provider-datadog

Terraform Datadog provider
https://www.terraform.io/docs/providers/datadog/
Mozilla Public License 2.0
403 stars 380 forks source link

supporting cws multi-policy in terraform #2681

Open homoeconomics opened 6 days ago

homoeconomics commented 6 days ago

Adding new resources and data sources to support the CWS multi-policy feature.

  1. Updated the data source datadog_csm_threats_agent_rules such that users could pass in the policy_id as an optional attribute to fetch rules in a specific policy.
  2. Added a new data source datadog_csm_threats_policies for users to list their policies.
  3. Added a new resource datadog_csm_threats_policy for users to manage their CWS policies.
  4. Added a new resource datadog_csm_threats_multi_policy_agent_rule for users to manage their rules in a policy.

TODO: record the tests after the DD SDK is updated.