Closed anarazel closed 1 year ago
The best option would be to not assign the family inside packer, but do it afterwards, after the permission has been set up. However, there does not appear to be an option to add a family to an image.
There is. Either there didn't use to, or I somehow misread the language previously.
gcloud compute images update --project <project> --family <family> <image-name>
does work.
@nbyavuz If you have time, it'd be great to build all images without a family grant access, and only then add the family.
A later step would be to test the newly built image and only then add the family.
There is. Either there didn't use to, or I somehow misread the language previously.
https://cloud.google.com/sdk/docs/release-notes#compute_engine_85
333.0.0 (2021-03-23) ... Promoted --description and --family flags of gcloud compute images update to GA.
E.g. https://cirrus-ci.com/task/6317071085076480?logs=build_image#L447
Actually succeeded creating the image, which then lead to these failures:
The best option would be to not assign the family inside packer, but do it afterwards, after the permission has been set up. However, there does not appear to be an option to add a family to an image.
Nor have I found a way to set up a default policy for image permissions, which would be even better.