Closed JonTheNiceGuy closed 1 year ago
Adding context, tested this morning;
variable "proxmox_username" {}
variable "proxmox_password" {}
variable "proxmox_endpoint" {}
provider "proxmox" {
endpoint = var.proxmox_endpoint
username = var.proxmox_username
password = var.proxmox_password
insecure = true
}
If I set:
export TF_VAR_proxmox_endpoint=https://192.0.2.1:8006
export TF_VAR_proxmox_username=root@pam
export TF_VAR_proxmox_password=abc123
This does work, so it's possible to load these variables from outside the provider, just not in the way that I'd expect.
Thanks for the report @JonTheNiceGuy!
Yeah, regressed when I added protocol v6 support and provider muxing as the first steps of migration to the new terraform plugin framework. Glad you found a workaround, but I'll try to fix it for the next release.
Describe the bug When performing
terraform plan
orterraform apply
I get this error:To Reproduce Steps to reproduce the behavior:
main.tf
terraform apply
Expected behavior
This behaviour only is exhibited when replacing the
provider "proxmox"
block with the actual credentials in the HCL.Additional context Add any other context about the problem here.
TF_LOG=DEBUG terraform apply
):