Skip to content

nutanix_images_v2 #738

@levtech1

Description

@levtech1

Nutanix Cluster Information

Please provide the version of:

  • Nutanix Cluster (Prism Element / AOS) - AOS 6.10
  • Nutanix Prism Central - PC 2024.3

Terraform Version

Terraform Version is 1.10.5

Affected Resource(s)

  • nutanix_image_v2

Terraform Configuration Files

resource "nutanix_images_v2" "img-1"{
    name = "test-image"
    description = "img desc"
    type = "ISO_IMAGE"
    source{
        url = "http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso"
    }
}

data "nutanix_clusters" "clusters"{}

locals {
cluster0 = data.nutanix_clusters.clusters.entities[0].metadata.uuid
}

resource "nutanix_images_v2" "img-2"{
    name = "test-image"
    description = "img desc"
    type = "DISK_IMAGE"
    source{
        url = "http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso"
    }
    cluster_location_ext_ids = [
        local.cluster0
    ]
}

Debug Output

Panic Output

Expected Behavior

expected behavior should be an out put of the plan

Actual Behavior

error stating below

Image

Steps to Reproduce

  1. terraform plan

Important Factors

  • #0000 <!---Github Issue number --->

Metadata

Metadata

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions