i have created a image using packer with the tags=packer-terraform now i would like to call the image_id in my terraform file (.tf). provider is openstack version rocky and terrform version 0.12
i would like to use the image id which i would like to get from the data source.
data “openstack_images_image_v2” “centos_packer” {
name = “centos packer image”
most_recent = true
properties = {
tags = “packer-terraform”
}
}
output “image_id” {
value = data.openstack_images_image_v2.centos_packer.id
description = “The image id of the packer image”
}
==========================================
i am getting an error “Error: Your query returned no results. Please change your search criteria and try again.”