Create notification for traffic anomalies per terraform

What is the name of the domain?

bike24.de

What is the error number?

17003

What is the error message?

Invalid object selections

What is the issue you’re encountering

I can’t create the notification with the terraform…

What steps have you taken to resolve the issue?

  • read the documentation Terraform Registry
  • Created the resource manually successfully
  • Asked the Enterprise support, more than one time

What are the steps to reproduce the issue?

I want to apply following code, this is the plan output:

resource "cloudflare_notification_policy" "cloudflare_notifications" {
  account_id  = "account_id"
  alert_type  = "traffic_anomalies_alert"
  created     = (known after apply)
  description = "Traffic anomalies detected - development"
  enabled     = true
  id          = (known after apply)
  modified    = (known after apply)
  name        = "traffic_anomalies_alert_development"
  email_integration { 
    id   = "support@invalid_domain.de"
    name = null
  } 
  filters { 
    target_zone_name = [ 
      + "invalid_domain.de",
    ] 
  } 
}

Could you help me to write a valid code for this notification?

Thank you in advance

To get the right values for the parameter, i created the resource manually and than did a curl towards the api,
With the right values for the parameter i was sure to be able to deploy the resource, but it failed with an provider error.

Because of the lack of support(Enterprise support), i close this topic now.

Have a nice one.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.