Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The updated resource for datadog_csm_threats_agent_rule results in a 403 Forbidden error of the terraform plan #2384

Open
gerganapr opened this issue Apr 24, 2024 · 0 comments
Labels

Comments

@gerganapr
Copy link

Datadog Terraform Provider Version

v3.39.0

Terraform Version

v1.3.9

What resources or data sources are affected?

datadog_csm_threats_agent_rule

Terraform Configuration Files

resource "datadog_csm_threats_agent_rule" "rule_sec_example" {
  name        = "sec_rule_example"
  description = ""
  enabled     = true
  expression  = "example_expression"
}

Relevant debug or panic output

No response

Expected Behavior

We changed all our existing CWS terraform resources to reflect the change of the API endpoint in Datadog, and the expectation was that the plan will not fail, but will run normally.

Actual Behavior

The terraform plan is failing and the apply cannot be executed.
Error: error fetching cloud workload security agent rule from /api/v2/security_monitoring/cloud_workload_security/agent_rules/xxx-xr-xsw: 403 Forbidden: {"errors":["You can't query this Cloud Workload Security endpoint anymore. It has been migrated to corresponding CSM Threats endpoint. See the API documentation for reference: https://docs.datadoghq.com/api/latest/cloud-workload-security/"]}

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@gerganapr gerganapr added the bug label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant