aziontech / terraform-provider-azion

Terraform provider for managing Azion resources.
Mozilla Public License 2.0
3 stars 3 forks source link

fix: Resources should be recreated when removed outside of Terraform #160

Closed maxwelbm closed 1 month ago

maxwelbm commented 1 month ago

When a resource is created via Terraform and removed manually we should recreate the resource instead of returning the following error:


Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: 404 Not Found
│ 
│   with azion_edge_application_rule_engine.example,
│   on resource.tf line 62, in resource "azion_edge_application_rule_engine" "example":
│   62: resource "azion_edge_application_rule_engine" "example" {
│ 
│ {"detail":"Not found."}
╵