From 61e2ea308e191a2abbc6ea6e33dfc354420ca89d Mon Sep 17 00:00:00 2001 From: YAMADA Tsuyoshi Date: Thu, 10 Nov 2016 17:54:28 +0900 Subject: [PATCH] googlecompute-export: Fixed scopes to run gcloud, gsutil in startup script --- post-processor/googlecompute-export/post-processor.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/post-processor/googlecompute-export/post-processor.go b/post-processor/googlecompute-export/post-processor.go index f198ab7c8..ab198cea4 100644 --- a/post-processor/googlecompute-export/post-processor.go +++ b/post-processor/googlecompute-export/post-processor.go @@ -79,6 +79,11 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac Zone: zone, Network: "default", RawStateTimeout: "5m", + Scopes: []string{ + "https://www.googleapis.com/auth/userinfo.email", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/devstorage.full_control", + }, } exporterConfig.CalcTimeout()