terraform-provider-vsphere icon indicating copy to clipboard operation
terraform-provider-vsphere copied to clipboard

Add support for a `vsphere_virtual_disk_attachment` resource

Open xelite opened this issue 5 years ago • 3 comments

Terraform Version

0.12

vSphere Provider Version

vsphere_v1.12.0_x4

I want to be able to create vm and attach to them additional disks created with vsphere_virtual_disk resource. Currently it is not possible without modify vsphere_virtual_machine which is not uncomfortable, beacuse I've got several modules with different num of disks. Moreover terraform is detaching disk that was attached manually with sufficiently clear message. Current plan:

      ~ disk {
          ~ label            = "orphaned_disk_0" -> "<remove, keep disk>"
        }

It should be something like:

      ~ disk {
          ~ label            = "orphaned_disk_0" -> "disk will be detached from vm"
        }

xelite avatar Nov 14 '19 08:11 xelite

This issue has been open 180 days with no activity. If this issue is reproducible with the latest version of the provider and with Terraform 0.12, please comment. Otherwise this issue will be closed in 30 days.

hashibot avatar May 19 '20 00:05 hashibot

This is still reproducible

xelite avatar May 24 '20 18:05 xelite

This seems reasonable, and this same model will probably be good for working with over virtual machine sub resources. This isn't a top priority since we have an alternate way of working with the disks, but I'm going to plan on looking into this for our v2.0 release of the provider.

bill-rich avatar Aug 18 '20 23:08 bill-rich