Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In 04-packer.md , Need to add "account_file" option in json file before building image #14

Open
darklord1990 opened this issue Sep 26, 2018 · 1 comment

Comments

@darklord1990
Copy link

In 04-packer.md, the step "Create custom machine image", I got the error

googlecompute: google: could not find default credentials.
See https://developers.google.com/accounts/docs/application-default-credentials for more information.

After googling, I found this link https://www.packer.io/docs/builders/googlecompute.html and it help me to fix the above error.

Step to fix :

  1. "Compute Engine Service Account" need to be created
  2. Export the JSON file
  3. Then add a option "account_file" into addit-base-image.json

Please let me know if I am missing any step that causes this error.

Thanks
Mark

@Artemmkin
Copy link
Owner

Hi @darklord1990 , I believe you might've missed to create application default credentials. You can also use a service account credentials exported into a file as you described, then you would need to change the provider configuration for packer (as you already described) and terraform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants