packer-plugin-googlecompute icon indicating copy to clipboard operation
packer-plugin-googlecompute copied to clipboard

Add a way for users to manually specify project in addition to image family

Open lbajolet-hashicorp opened this issue 2 years ago • 1 comments

Follow-up to #191/#192, this issue/PR combo exists because the list of projects to get an image from when an image family is specified in a template is hardcoded in the plugin.

This doesn't scale, and implies that users wanting to use an image from one of those plugins should open an issue and us maintainers have to add the project to the list, then release a new version of the plugin.

Instead, we should probably add a new attribute so users that want an image from a specific project/family have the option to specify it manually, and we don't need to release a new version of the plugin each time.

lbajolet-hashicorp avatar Oct 23 '23 20:10 lbajolet-hashicorp

I'm also impacted by this.

The project deeplearning-platform-release is used by GCP Deep Learning VM Images, but is missing in the hardcoded list.

Simply being able to pass a source_image_project value through would be helpful.

twistedpair avatar Jul 24 '24 20:07 twistedpair

As discussed, this can be achieved using the source_image_project_id parameter that we already have in Packer. Closing this issue.

tanmay-hc avatar Apr 09 '25 05:04 tanmay-hc