I am building a new terraform provider named lightstep-incident-response. My main.tf file has block of code below:
terraform {
- required_providers {*
- lightstep-incident-response = {*
-
version = "1.0"*
-
source = "lightstep/lightstep-incident-response"*
- }*
- }*
}
provider “lightstep-incident-response” {
- base_url = “” //Enter Tenant URL*
- api_token = “” //Enter User API Token*
}
When I run terraform init, I get below error:
Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider lightstep/lightstep-incident-response: provider registry registry.terraform.io does not have a provider
│ named Terraform Registry
│
│ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which modules are currently
│ depending on lightstep/lightstep-incident-response, run the following command:
│ terraform providers
The hashicorp doc says if it doesn’t find the provider with source in registry, it searched in local terraform.d/plugins dir. But it doesnt look like its searching in my local dir. I tried options mentioned in few other links none helped. Looking for help here.