0

In the past I've been using gcimagebundle to create an image from an existing GCE instance, that I can later upload to Cloud Storage.

Since the tool been deprecated, I wonder if there is an alternative easy method to create GCE images?

To clarify: I want to create images that are publicly shared (with any GCP user/project). This to distribute easy to start images of the Redash project.

arikfr
  • 369
  • 2
  • 5
  • 16

3 Answers3

1

There is a new IAM role launched recently which allow you to share private images across Projects using Image User role. However, this IAM role is in beta release and is not covered by any SLA. You can refer to this link for more information.

Faizan
  • 1,438
  • 10
  • 18
  • It seems that this requires giving permission to specific projects. I want to create public image (I updated my question to better explain my use case). – arikfr Nov 22 '16 at 13:03
  • compute.imageUser IAM role provide the user in another project access to your private images. This seems to be the easiest option available to share the images across projects with different users. With that said, you can still export images to GCS and share them, detailed steps are documented on this [link](https://cloud.google.com/compute/docs/images/export-image). – Faizan Nov 22 '16 at 21:36
0

Newer versions of Packer added support for Google Compute Export Post-Processor, which makes it easy to create a public image.

arikfr
  • 369
  • 2
  • 5
  • 16
0
https://github.com/khushbuparakh/gcp/blob/master/instance.py

I have written this script. You can use this. It creates a bucket. Upload your private file to the bucket. Create an image using that file and spin up an instance with your private image. Not that file you are uploading needs to be compressed with tar.gz and con

khushbu
  • 1
  • 1