Error AtlasError Documentation and Resolution

Terraform failed to query available provider packages

Error: Failed to query available provider packages

Terraform could not select or retrieve provider versions that satisfy the current configuration and lock file constraints.

Failed to query available provider packagesproviders
Error: Failed to query available provider packages
  • The configured provider constraints do not match the version locked in .terraform.lock.hcl.
  • A module upgrade introduced stricter provider requirements than the current lock file allows.
  • The selected provider version no longer satisfies the active constraints.
  1. Run terraform providers to see which modules and constraints depend on the provider.
  2. Review the configured provider version constraints and the dependency lock file together.
  3. If appropriate, run terraform init -upgrade so Terraform can choose a new compatible provider version.
HashiCorp Developer: Initialize Terraform configuration
Terraform failed to query available provider packages: causes and fixes | Error Atlas