thousandeyes / terraform-provider-thousandeyes

ThousandEyes Terraform Provider
Apache License 2.0
21 stars 26 forks source link

[Bug]: Feature request: Data source for alert rules. #175

Open christung16 opened 1 month ago

christung16 commented 1 month ago

What versions are you using?

Terraform version 1.9.2. Thousandeyes provider: 2.0.9

What did you expect to happen?

Need a data source for alert rules such that we can select the select the alert rules for the test cases

What actually happened?

No way to find out the rule id

Terraform code to reproduce the bug

terraform plan
╷
│ Error: Invalid data source
│
│   on main.tf line 29, in data "thousandeyes_alert_rule" "http_server_alert_rule":
│   29: data "thousandeyes_alert_rule" "http_server_alert_rule" {
│
│ The provider thousandeyes/thousandeyes does not support data source "thousandeyes_alert_rule".
│
│ Did you intend to use the managed resource type "thousandeyes_alert_rule"? If so, declare this using a "resource" block instead of a     
│ "data" block.

Any additional comments or code?

No response

Steps to reproduce the bug

terraform plan ╷ │ Error: Invalid data source │ │ on main.tf line 29, in data "thousandeyes_alert_rule" "http_server_alert_rule": │ 29: data "thousandeyes_alert_rule" "http_server_alert_rule" { │ │ The provider thousandeyes/thousandeyes does not support data source "thousandeyes_alert_rule". │ │ Did you intend to use the managed resource type "thousandeyes_alert_rule"? If so, declare this using a "resource" block instead of a
│ "data" block.