terraform-provider-powerdns
terraform-provider-powerdns copied to clipboard
The attribute "server_url" is required, but no definition was found.
Terraform Version
v0.14.2
Affected Resource(s)
All.
Terraform Configuration Files
terraform {
required_providers {
powerdns = {
source = "pan-net/powerdns"
}
}
}
provider "powerdns" {
server_url = "http://example.com/"
}
Expected Behavior
When API key isn't defined (and therefore, Terraform asks for it interactively) but the PowerDNS server URL is defined in the configuration, the provider sees the server URL parameter and talks to it.
Actual Behavior
% terraform plan
Acquiring state lock. This may take a few moments...
provider.powerdns.api_key
REST API authentication key
Enter a value: 1234
Releasing state lock. This may take a few moments...
Error: Missing required attribute
on <input-prompt> line 1:
(source code not available)
The attribute "server_url" is required, but no definition was found.