terraform-provider-nutanix
terraform-provider-nutanix copied to clipboard
retrieve existing nutanix_resource like aws_ami filter works
I'm integrating Terraform over a working Nutanix infraestructure and need to retrieve some existing images to use in my terraform template.
There's a way to do this like aws_ami filter works?
data "aws_ami" "base_image" { filter { name = "name" values = ["packer-ubuntu18-aws-image"] } }
Hi @manelso,
The provider has the nutanix_image
data source (example below). Is this the functionality you are looking for?
data "nutanix_image" "centos" {
image_name = "CentOS_7_Cloud"
}
Hey @manelso - If the nutanix_image data_source satisfies your use-case? Can we close this issue?