Hello!
I’ve deleted a 3rd party module from my TF code , but TF still complaints about missing external
provider (used by that module).
The error that I get is:
Error: failed to read schema for module.notify_slack.module.lambda.data.external.archive_prepare in registry.terraform.io/hashicorp/external: failed to instantiate provider "registry.terraform.io/hashicorp/external" to obtain schema: unavailable provider "registry.terraform.io/hashicorp/external"
I’ve run terraform init
but the issue remains. My .terraform.lock.hcl
file which is commited on my source control does not have the external
provider setting.
provider "registry.terraform.io/hashicorp/aws" {
version = "4.47.0"
constraints = "~> 4.0"
hashes = [
]
}
provider "registry.terraform.io/hashicorp/random" {
version = "3.4.3"
constraints = "~> 3.0, ~> 3.1"
hashes = [
]
}
If I get .terraform.lock.hcl
from main, which has all the previous providers (including external
), I can make it work locally but then my CI fails.
Do you guys have any suggestions, please?