You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have only encountered the issue on, but I have not tried anything else
vsphere_virtual_machine
$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
random_pet.label: Refreshing state... (ID: sterling-doe)
vsphere_custom_attribute.requester: Refreshing state... (ID: 3826)
data.vsphere_datacenter.my_vsphere: Refreshing state...
vsphere_folder.vm_folder: Refreshing state... (ID: group-v25376)
data.vsphere_resource_pool.my_pool: Refreshing state...
data.vsphere_host.my_hosts[1]: Refreshing state...
data.vsphere_datastore.my_datastore: Refreshing state...
data.vsphere_network.my_public_network: Refreshing state...
data.vsphere_network.my_private_network: Refreshing state...
data.vsphere_virtual_machine.my_template: Refreshing state...
data.vsphere_host.my_hosts[0]: Refreshing state...
vsphere_virtual_machine.my_worker: Refreshing state... (ID: 4228e828-6f5a-3f5f-9d52-4e73e881e153)
vsphere_virtual_machine.my_master: Refreshing state... (ID: 4228864a-e5e7-a400-f61d-fc9bf65e3a05)
------------------------------------------------------------------------
Error: Error running plan: 1 error(s) occurred:
* module.my_module.output.workers: Resource 'vsphere_virtual_machine.my_worker' does not have attribute '*' for variable 'vsphere_virtual_machine.my_worker.*.*'
outputs.tf
output "workers" {
value = ["${vsphere_virtual_machine.my_worker.*.*}"]
}
Other code that failed with similar behavior
I also tried to make a local-exec provisioner within the vsphere_virtual_machine resource, but
Error: Error applying plan:
1 error(s) occurred:
* module.my_module.vsphere_virtual_machine.my_worker: Resource 'vsphere_virtual_machine.my_worker.0' does not have attribute 'network_interface.*.ipv4_address' for variable 'vsphere_virtual_machine.my_worker.0.network_interface.*.ipv4_address'
Expected Behavior
I was getting errors when trying to get the private ip address of my vm, so instead I tried to see all available attributes.
Actual Behavior
Terraform quit with an error when it should have given me all available attribuets
Important Factoids
I do not know if it matters, but I am using count to create potentially multiple VMs (but am currently only making one).
When trying to access the attributes on VMs that I have created, Terraform is only reporting errors.
Terraform Version
vSphere Provider Version
Affected Resource(s)
I have only encountered the issue on, but I have not tried anything else
vsphere_virtual_machine
outputs.tf
Other code that failed with similar behavior
I also tried to make a
local-exec
provisioner within thevsphere_virtual_machine
resource, butalso resulted in
Expected Behavior
I was getting errors when trying to get the private ip address of my vm, so instead I tried to see all available attributes.
Actual Behavior
Terraform quit with an error when it should have given me all available attribuets
Important Factoids
I do not know if it matters, but I am using
count
to create potentially multiple VMs (but am currently only making one).References
This might be related to:
The text was updated successfully, but these errors were encountered: