I am using terraform version 0.13.2, provider http://registry.terraform.io/hashicorp/local v2.1.0 and have the following resource :
terraform {
required_providers {
local = {
source = "hashicorp/local"
}
}
required_version = ">= 0.13"
}
resource "local_file" "test_local_file" {
content = "This is a test file"
filename = "test.txt"
}
Now when I take only the terraform.tfstate file in another directory and try to destroy this configuration using terraform 1.1.2 in the new directory I get the following error on terraform destroy :
│ Error: Missing resource schema from provider
│
│ No resource schema found for local_file.
What is the fix?