I am creating a simple terraform template, when I run “terraform init” it tries to search resource as one of the providers. Please can someone help and explain what am I missing or doing wrong?
temaplate:
provider “avi” {
avi_username = “admin”
avi_password = “xxxxxx”
avi_controller = “10.10.10.10”
avi_tenant = “admin”
}resource “Pool” “pool1” {
name = “test1”
}
Error:
terraform init
Initializing the backend…
Initializing provider plugins…
- Using previously-installed terraform-providers/avi v0.2.3
- Finding latest version of hashicorp/pool…
Error: Failed to install provider
Error while installing hashicorp/pool: provider registry registry.terraform.io
does not have a provider named Terraform Registry