diff --git a/post-processor/googlecompute-export/post-processor.go b/post-processor/googlecompute-export/post-processor.go index 7631402a3..de56eb7cb 100644 --- a/post-processor/googlecompute-export/post-processor.go +++ b/post-processor/googlecompute-export/post-processor.go @@ -125,6 +125,7 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac MachineType: p.config.MachineType, Metadata: exporterMetadata, Network: p.config.Network, + NetworkProjectId: builderProjectId, RawStateTimeout: "5m", SourceImageFamily: "debian-9-worker", SourceImageProjectId: "compute-image-tools", diff --git a/website/source/docs/post-processors/googlecompute-export.html.md b/website/source/docs/post-processors/googlecompute-export.html.md index 98061cddf..0484b0c78 100644 --- a/website/source/docs/post-processors/googlecompute-export.html.md +++ b/website/source/docs/post-processors/googlecompute-export.html.md @@ -54,7 +54,7 @@ permissions to the GCS `paths`. - `network` (string) - The Google Compute network id or URL to use for the export instance. Defaults to `"default"`. If the value is not a URL, it will be interpolated to - `projects/((network_project_id))/global/networks/((network))`. This value + `projects/((builder_project_id))/global/networks/((network))`. This value is not required if a `subnet` is specified. - `subnetwork` (string) - The Google Compute subnetwork id or URL to use for @@ -62,7 +62,7 @@ permissions to the GCS `paths`. custom subnetting. Note, the region of the subnetwork must match the `zone` in which the VM is launched. If the value is not a URL, it will be interpolated to - `projects/((network_project_id))/regions/((region))/subnetworks/((subnetwork))` + `projects/((builder_project_id))/regions/((region))/subnetworks/((subnetwork))` - `zone` (string) - The zone in which to launch the export instance. Defaults to `googlecompute` builder zone. Example: `"us-central1-a"`