Skip to content

Instantly share code, notes, and snippets.

@dacut
Created February 17, 2021 20:11
Show Gist options
  • Save dacut/88a1f071f0b4bb2363b01660cf50579b to your computer and use it in GitHub Desktop.
Save dacut/88a1f071f0b4bb2363b01660cf50579b to your computer and use it in GitHub Desktop.
terraform providers lock issue
2021/02/17 12:11:07 [INFO] Terraform version: 0.14.6
2021/02/17 12:11:07 [INFO] Go runtime version: go1.15.7
2021/02/17 12:11:07 [INFO] CLI args: []string{"/usr/local/bin/terraform", "providers", "lock", "-platform=linux_amd64", "-platform=windows_amd64", "-platform=darwin_amd64", "-platform=linux_arm64"}
2021/02/17 12:11:07 [DEBUG] Attempting to open CLI config file: /Users/dacut/.terraformrc
2021/02/17 12:11:07 Loading CLI configuration from /Users/dacut/.terraformrc
2021/02/17 12:11:07 Loading CLI configuration from /Users/dacut/.terraform.d/credentials.tfrc.json
2021/02/17 12:11:07 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/02/17 12:11:07 [DEBUG] ignoring non-existing provider search directory /Users/dacut/.terraform.d/plugins
2021/02/17 12:11:07 [DEBUG] ignoring non-existing provider search directory /Users/dacut/Library/Application Support/io.terraform/plugins
2021/02/17 12:11:07 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2021/02/17 12:11:07 [INFO] CLI command args: []string{"providers", "lock", "-platform=linux_amd64", "-platform=windows_amd64", "-platform=darwin_amd64", "-platform=linux_arm64"}
2021/02/17 12:11:07 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2021/02/17 12:11:07 [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json
2021/02/17 12:11:07 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/aws/versions
2021/02/17 12:11:07 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/aws/versions
2021/02/17 12:11:07 [TRACE] providercache.fillMetaCache: scanning directory /var/folders/vg/95k36mn14x3_1cxqb8sd9ktw0000gn/T/terraform-providers-lock423766831
2021/02/17 12:11:07 [TRACE] getproviders.SearchLocalDirectory: /var/folders/vg/95k36mn14x3_1cxqb8sd9ktw0000gn/T/terraform-providers-lock423766831 is a symlink to /private/var/folders/vg/95k36mn14x3_1cxqb8sd9ktw0000gn/T/terraform-providers-lock423766831
2021/02/17 12:11:07 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/aws/3.20.0/download/linux/amd64
2021/02/17 12:11:07 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/aws/3.20.0/download/linux/amd64
2021/02/17 12:11:07 [DEBUG] GET https://releases.hashicorp.com/terraform-provider-aws/3.20.0/terraform-provider-aws_3.20.0_SHA256SUMS
2021/02/17 12:11:07 [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-aws/3.20.0/terraform-provider-aws_3.20.0_SHA256SUMS
2021/02/17 12:11:08 [DEBUG] GET https://releases.hashicorp.com/terraform-provider-aws/3.20.0/terraform-provider-aws_3.20.0_SHA256SUMS.sig
2021/02/17 12:11:08 [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-aws/3.20.0/terraform-provider-aws_3.20.0_SHA256SUMS.sig
2021/02/17 12:11:08 [TRACE] providercache.Dir.InstallPackage: installing registry.terraform.io/hashicorp/aws v3.20.0 from https://releases.hashicorp.com/terraform-provider-aws/3.20.0/terraform-provider-aws_3.20.0_linux_amd64.zip
2021/02/17 12:11:08 [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-aws/3.20.0/terraform-provider-aws_3.20.0_linux_amd64.zip
- Fetching hashicorp/aws 3.20.0 for linux_amd64...
2021/02/17 12:11:13 [DEBUG] Provider signed by 51852D87348FFC4C HashiCorp Security <security@hashicorp.com>
Error: Could not retrieve providers for locking
Terraform failed to fetch the requested providers for linux_amd64 in order to
calculate their checksums: some providers could not be installed:
- registry.terraform.io/hashicorp/aws: the current package for
registry.terraform.io/hashicorp/aws 3.20.0 doesn't match any of the checksums
previously recorded in the dependency lock file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment