Open desertmoose706 opened 3 years ago
I'm running into a similar situation where I need to reference a resource pool whose name is not unique in the data center, but is unique to the Cluster.
@desertmoose706 Today I Learned that you can specify the Resource Pool as /Compute Cluster Name/Resource Pool Name
That fact is not covered by the vsphere provider documentation but is mentioned in the docs for vmware's "vm" module
I still like your "parent_resource_pool_id" suggestion.
Terraform Version
Terraform v0.13.5
vSphere Provider Version
Affected Resource(s)
resource vsphere_resource_pool data vsphere_resource_pool
Description
Need to reference a resource pool within a Cluster.
E.g. I create the resource pool using this code in multiple clusters in the same datacenter:
Then seemingly only option to extract data for that pool name is:
Which returns the following error:
Potential Terraform Configuration
Recommend implementing
parent_resource_pool_id
fordata vsphere_resource_pool
to match the resource. e.g.:References
Community Note