cloudflare_notification_policy.drop_in_http_success: Importing from ID "/"...
cloudflare_notification_policy.drop_in_http_success: Import prepared!
Prepared cloudflare_notification_policy for import
cloudflare_notification_policy.drop_in_http_success: Refreshing state... [id=REDACTED]
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.
Actual output
Error: failed to set filters: Invalid address to set: []string{"filters", "0", "selectors"}
Steps to reproduce
Create a "Traffic Monitoring -> Traffic Anomalies" notification in the web UI
Attempt to import the policy:
terraform import <account id>/<policy id>
Additional factoids
I believe this selectors element is also relevant for the magic_tunnel_health_check_event alert type as using the API directly to list policies yields:
"selectors": [
"failures"
],
It is mentioned/referenced in the API docs as well
Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.5.7 cloudflare provider 4.18.0
Affected resource(s)
clouflare_notification_policy
Terraform configuration files
Link to debug output
https://gist.github.com/zeroschism/efa6bb07b7548e2bb80c8ac8e4e48614
Panic output
No response
Expected output
cloudflare_notification_policy.drop_in_http_success: Importing from ID "/"...
cloudflare_notification_policy.drop_in_http_success: Import prepared!
Prepared cloudflare_notification_policy for import
cloudflare_notification_policy.drop_in_http_success: Refreshing state... [id=REDACTED]
Import successful!
The resources that were imported are shown above. These resources are now in your Terraform state and will henceforth be managed by Terraform.
Actual output
Steps to reproduce
terraform import <account id>/<policy id>
Additional factoids
I believe this
selectors
element is also relevant for themagic_tunnel_health_check_event
alert type as using the API directly to list policies yields:It is mentioned/referenced in the API docs as well
References
No response