Terraform apply fails Archives - For all your terraform needs https://terraformarchitect.com/tag/terraform-apply-fails/ Automation cannot be an afterthought (TM) Wed, 19 Oct 2022 13:12:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 Error – ‘registry.terraform.io/hashicorp/local: there is no package for registry.terraform.io/hashicorp/local cached in .terraform/providers’ https://terraformarchitect.com/gcp/terraform-apply-fails/?utm_source=rss&utm_medium=rss&utm_campaign=terraform-apply-fails https://terraformarchitect.com/gcp/terraform-apply-fails/#respond Wed, 19 Oct 2022 13:11:20 +0000 https://terraformarchitect.com/?p=276 Terraform init or terraform init -upgrade or terraform apply fails with this error message: The installed provider plugins are not consistent with the packages selected in the dependency lock file: […]

The post Error – ‘registry.terraform.io/hashicorp/local: there is no package for registry.terraform.io/hashicorp/local cached in .terraform/providers’ appeared first on For all your terraform needs.

]]>
Terraform init or terraform init -upgrade or terraform apply fails with this error message:

The installed provider plugins are not consistent with the packages selected in the dependency lock file:
│ – registry.terraform.io/hashicorp/azurerm: the cached package for registry.terraform.io/hashicorp/azurerm x.y.x. (in .terraform\providers) does not match any of the checksums recorded in the dependency lock file
│ – registry.terraform.io/hashicorp/random: there is no package for registry.terraform.io/hashicorp/random 3.4.3 cached in .terraform\providers

Resolution

Step 1 – Look for this lock file (terraform.lock.hcl) in your current module. Delete it.

Step 2 – Re Run terraform init -upgrade

Terraform apply fails

The post Error – ‘registry.terraform.io/hashicorp/local: there is no package for registry.terraform.io/hashicorp/local cached in .terraform/providers’ appeared first on For all your terraform needs.

]]>
https://terraformarchitect.com/gcp/terraform-apply-fails/feed/ 0