PortOfPortland / terraform-provider-windns

A Terraform provider for Microsoft Windows DNS
MIT License
39 stars 20 forks source link

Registry issue? #20

Closed ryantho6 closed 2 years ago

ryantho6 commented 2 years ago

Not sure what's going on, but when I use

  required_providers {
    windns = {
      source = "PortOfPortland/windns"
      version = "0.5.3"
    }
  }
}

and

provider "windns" {
  server   = var.server
  username = var.domain_account
  password = var.domain_pass
  usessl = true
}

I get this error:

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider hashicorp/windns: provider registry
registry.terraform.io does not have a provider named registry.terraform.io/hashicorp/windns

Terraform providers:

Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/windns]
└── module.redacted_dns
    └── provider[registry.terraform.io/portofportland/windns] 0.5.3
ryantho6 commented 2 years ago

Nevermind, I needed to put required_providers in my main.tf as well as in my module.