I found a solution for it.
Making a JSON whose content is {"client_email":
"[email protected]} and providing Packer
with the path as `account_file` works for me.
On Monday, March 27, 2017 at 4:25:12 PM UTC+9, [email protected] wrote:
>
> Hi, there.
>
> I'm reading https://www.packer.io/docs/builders/googlecompute.html to
> make a VM image on GCP and wondering how to specify the service account
> which is attached to the vm instance to make the image.
> The document says that account_file option works for such a use case but,
> when it comes to a process running on a VM instance, any process has
> permission to use the instance default service account without any JSON key
> file and, I think, the packer process should also be able to use the
> service account without any JSON key file to start a VM.
>
> Is there any good option or good practice to start an VM without
> specifying a JSON key file?
>
> Best,
>
> --
> Kohei Kawasaki
>
>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/887c5b84-0fb6-4e20-8975-091a222568b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.