The Google Compute Image Import post-processor takes a compressed raw disk
image and imports it to a GCE image available to Google Compute Engine.
~> This post-processor is for advanced users. Please ensure you read the [GCE import documentation](https://cloud.google.com/compute/docs/images/import-existing-image) before using this post-processor.
## How Does it Work?
The import process operates by uploading a temporary copy of the compressed raw disk image
to a GCS bucket, and calling an import task in GCP on the raw disk file. Once completed, a
GCE image is created containing the converted virtual machine. The temporary raw disk image
copy in GCS can be discarded after the import is complete.
Google Cloud has very specific requirements for images being imported. Please see the
-`account_file` (string) - The JSON file containing your account credentials.
-`bucket` (string) - The name of the GCS bucket where the raw disk image
will be uploaded.
-`image_name` (string) - The unique name of the resulting image.
-`project_id` (string) - The project ID where the GCS bucket exists and
where the GCE image is stored.
### Optional
-`gcs_object_name` (string) - The name of the GCS object in `bucket` where the RAW disk image will be copied for import. Defaults to "packer-import-{{timestamp}}.tar.gz".
-`image_description` (string) - The description of the resulting image.
-`image_family` (string) - The name of the image family to which the resulting image belongs.
-`image_labels` (object of key/value strings) - Key/value pair labels to apply to the created image.
-`keep_input_artifact` (boolean) - if true, do not delete the compressed RAW disk image. Defaults to false.
-`skip_clean` (boolean) - Skip removing the TAR file uploaded to the GCS bucket after the import process has completed. "true" means that we should leave it in the GCS bucket, "false" means to clean it out. Defaults to `false`.