-
Notifications
You must be signed in to change notification settings - Fork 85
Error: Monitor not found: � #82
Comments
I've seen this when monitors are deleted from outside of terraform (web portal). Provider code should handle it but looks like it needs a little bit of work but haven't had time to set up the source and debug. Quick fix is to remove the resources in question from your statefile: The error message doesn't identify the resource unfortunately so you either know what they are or you'll have to figure it out some other way, |
@ray-jam thank you! But for me is not clear which resource is out of state. I guess, instead of � should be resource name |
Most terraform providers would fail in the same way. Agreed messaging could be improved (seems like that’s a bug itself), but getting an error when a resource is deleted outside of terraform is expected behaviour (I don’t think it’s even possible for a provider to delete its own state when an error like this happens) to protect users from irreversible consequences when network/server-side issues happen |
Couldn't find it to start with but check this part of the docs: What it says is: If the resource is no longer present, calling SetId with an empty string will signal its removal. I use AWS/Azure providers frequently and if someone has gone off script and deleted resources through the portal the subsequent The
Guess it comes down to is it an error or just drift. If it is drift then ideally my plan will show me because I'll see the "new resources" being recreated when I review the output and they would be unexpected based on my changes at which point I can choose to cancel, update the tf code and plan again or just apply because I know they shouldn't have been deleted. By the way thanks for the provider appreciate it being here :) and the effort behind it |
Ah makes sense. Wasn’t aware of this. Prob won’t have time to implement but if anyone else wants to send a PR I’ll happily merge |
Encountered the same issue sadly, so anybody working on a PR would be much appreciated 👍 |
Add our uptimerobot to terraform so it's managed in code and we can easily extend it. This currently only adds our to be monitored sites and leaves the status page as is now. Deleting resources on uptimerobot will cause terraform unable to run see: louy/terraform-provider-uptimerobot#82
Add our uptimerobot to terraform so it's managed in code and we can easily extend it. This currently only adds our to be monitored sites and leaves the status page as is now. Deleting resources on uptimerobot will cause terraform unable to run see: louy/terraform-provider-uptimerobot#82
Add our uptimerobot to terraform so it's managed in code and we can easily extend it. This currently only adds our to be monitored sites and leaves the status page as is now. Deleting resources on uptimerobot will cause terraform unable to run see: louy/terraform-provider-uptimerobot#82 References: #209
Add our uptimerobot to terraform so it's managed in code and we can easily extend it. This currently only adds our to be monitored sites and leaves the status page as is now. Deleting resources on uptimerobot will cause terraform unable to run see: louy/terraform-provider-uptimerobot#82 References: #209
Add our uptimerobot to terraform so it's managed in code and we can easily extend it. This currently only adds our to be monitored sites and leaves the status page as is now. Deleting resources on uptimerobot will cause terraform unable to run see: louy/terraform-provider-uptimerobot#82 References: #209
Add our uptimerobot to terraform so it's managed in code and we can easily extend it. This currently only adds our to be monitored sites and leaves the status page as is now. Deleting resources on uptimerobot will cause terraform unable to run see: louy/terraform-provider-uptimerobot#82 References: #209
I used to run the code and everything worked, now I'm running the plan and I get an unclear error:
Run
Output log
The text was updated successfully, but these errors were encountered: