yannh / terraform-provider-statuspage

A Terraform provider for Statuspage.io
https://registry.terraform.io/providers/yannh/statuspage/latest
Mozilla Public License 2.0
48 stars 25 forks source link

terraform error after manually deleting a component from statuspage #36

Closed ghost closed 2 years ago

ghost commented 3 years ago

Hello, This provider does not seem to appreciate when a component is (manually) deleted from statuspage. After manual deletion, I got:

terraform plan
[...]
Error: could not find component with ID: 9nt3wb5yrbm9, http status 404

I expected for terraform plan to succeed and propose to reprovision the component.

Terraform v0.13.6
+ provider registry.terraform.io/yannh/statuspage v0.1.7
yannh commented 3 years ago

Urgh, so would I, thanks for the report :heart:

yannh commented 3 years ago

I tried a fix for this - but I have not been able to really write a test for this yet, so I am unsure if this is actually fixed. Writing a test for this is a bit of a challenge, hopefully I'll get back to it soon :+1:

mtaylor-evidation commented 3 years ago

Any updates on this I'm experiencing this issue also.

yannh commented 2 years ago

Fixed in v0.1.12 :bow: It should include such a note now , and make a plan to recreate the resources. image

yannh commented 2 years ago

Mh reopening since the CI is failing for some reason, though that seems unrelated to this change :thinking:

yannh commented 2 years ago

Fixed and repushed the tag , was linked to https://github.com/hashicorp/hc-install/issues/59 - it's really quite bad that they did not manage to make this change backward compatible, all providers might fail to build now, and it will be potentially impossible to rebuild older versions of any providers without change.