Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Datasource for storage_container #298

Open
FlochonR opened this issue Oct 27, 2021 · 3 comments
Open

Add Datasource for storage_container #298

FlochonR opened this issue Oct 27, 2021 · 3 comments
Labels

Comments

@FlochonR
Copy link

Hello !

I'm beginning to work with this provider that is very practice and I will use the resource nutanix_virtual_machine.
In the example, I found this part

    storage_config {
      storage_container_reference {
        kind = "storage_container"
        uuid = "2bbe67bc-fd14-4637-8de1-6379257f4219"
      }
    }

This request is to add a datasource to get directly in terraform like this for example

data "nutanix_storage_container" "storage_container" {
    storage_container_name = var.storage_container_name
}

resource "nutanix_virtual_machine" "vm" {
  name                 = "myVm"
  cluster_uuid         = data.nutanix_cluster.cluster.id
  
  disk_list {
    disk_size_bytes = 10 * 1024 * 1024 * 1024

    storage_config {
      storage_container_reference {
        kind = "storage_container"
        uuid = data.nutanix_storage_container.storage_container.id
      }
    }
  }
}

Thanks in advance for your help !

@Bogdan-Busoi-EMR
Copy link

We desperately need this!

@mccabejr
Copy link

This continues to be a need.

@tejpillay
Copy link

any update for this? we desperately need this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants