Just wondering if anyone knows how to list the latest version of a GCP marketplace image when you use Marketplace owned images.
When you submit a GCP marketplace image, there's a option to use the Marketplace owned images:
We opted to use this & so the image ends up in gcp owned project, that sort of mirrors the original project. `projects/mpi-{original-name}/global/images/{image-name}`
When you want to automate launching the image it's always helpful to just take the latest. Before we switched to using the Marketplace owned images, we could do a list of the images within our project & therefore could use gcloud/terraform to get the latest. Now that it's not in our owned project, we can't list images in the marketplace owned project. We can only describe the specific version.
So before the switch we could do this:
gcloud compute images list --filter "name:myimage" --project=myproject
If you try to list images in the marketplace owned project, you get an error:
- Required 'compute.images.list' permission for 'projects/mpi-{original-name}'
We used to do this with terraform like this:
data "google_compute_image" "image" { project = "myproject" filter = "name:myimage*" most_recent = true }
Now if we switch to using the Marketplace image project it's not working.
Any help would be appreciated!