thousandeyes / terraform-provider-thousandeyes

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

[Bug]: a disabled tag is crashing the terraform apply #161

Open Sraza11 opened 8 months ago

Sraza11 commented 8 months ago

What versions are you using?

Terraform version 1.5.7 and 2.0.5 for thousand eyes

What did you expect to happen?

Plan should produce verbose error which test from the tag is disabled or removed

What actually happened?

When I try to apply terraform I get the following messages from a tag resource. I have few hundred tests in this tag and the error I am getting is not verbose enough tell me which test id is not correct or is disabled or deleted. Here is an example.

Terraform code to reproduce the bug

Crtae a tag and a test. Apply the plan and then disable or delete the test and apply again.  It won't give you any clue what the problem is.

Any additional comments or code?

thousandeyes_label.TEST_lable: Modifying... [id=790095] ╷ │ Error: Failed call API endpoint. HTTP response code: 403. Error: 403 Forbidden │ Please ensure you are using the correct authentication token, and you have the correct role. │ User is not authorized to perform this operation │ │ with thousandeyes_label.TEST_lable, │ on AOD_tests.tf line 999, in resource "thousandeyes_label" “TEST_lable": │ 999: resource "thousandeyes_label" “TEST_lable" {

Steps to reproduce the bug

Disable a test attached to a tag