vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
150 stars 33 forks source link

Many arguments not available #170

Closed devcose closed 2 years ago

devcose commented 2 years ago

Started using recently but have found many arguments are not available on the following versions maybe i'm missing something or putting them in the wrong places but i don't believe so Terraform v1.0.10 on linux_amd64

wait_for_ip and ipv4_addresses return

Error: Unsupported argument

   on main.tf line 84, in resource "xenorchestra_vm" "win10vm":
   84:     wait_for_ip = true

 An argument named "wait_for_ip" is not expected here.

 Error: Unsupported argument

   on main.tf line 85, in resource "xenorchestra_vm" "win10vm":
   85:     ipv4_addresses = "10.0.0.147/32"

 An argument named "ipv4_addresses" is not expected here. 

as well accessing the majority of attributes

output "server_public_ip" { value = xenorchestra_vm.win10vm.ipv4_addresses }

returns

Error: Unsupported attribute │ │ on main.tf line 104, in output "server_public_ip": │ 104: value = xenorchestra_vm.win10vm.ipv4_addresses │ │ This object has no argument, nested block, or exported attribute named "ipv4_addresses".

If i'm missing something obvious please let me know otherwise is this just a version issue that i'm experiencing?

ddelnano commented 2 years ago

Hi @devcose, v0.3.7 is an extremely old version. The terraform registry docs are versioned and you can see from the screenshot below that v0.21.0 is the latest version. Please upgrade to the latest version and try again.

Screen Shot 2021-11-04 at 4 41 54 AM

I'm happy to continue providing support on this thread or in Discord, but I'll be closing this issue since I feel confident this is related to running an old version.