Terraform CLI
Terraform failed to query available provider packages
Terraform could not select or retrieve provider versions that satisfy the current configuration and lock file constraints.
Terraform CLI
Terraform could not select or retrieve provider versions that satisfy the current configuration and lock file constraints.
Observed message
Error: Failed to query available provider packages
Why it happens
How to fix it
Official reference
HashiCorp Developer: Initialize Terraform configurationRelated errors
Explore more