Using Terraform Version >= 0.13 Results in "Failure to Query Available Provider Packages"
Opened this issue · 0 comments
s0liton commented
Issue:
- When using Terraform on version 0.13 or above, the setup.tf script fails with a "Error: Failed to Query Available Provider Packages".
Fix:
- Added "required_providers" to setup.tf above existing provider and moved version from "provider" configuration block to "required_providers" block as show below.
terraform { required_providers { okta = { source = "okta/okta" version = "~> 3.0" } } }
provider "okta" { org_name = var.org_name base_url = var.base_url api_token = var.api_token }