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

GCE: instructions for generating client secrets are no longer accurate #809

Closed
dmerrick opened this issue Jan 10, 2014 · 7 comments
Closed

Comments

@dmerrick
Copy link

This isn't directly related to the Packer project in terms of code, but it is related to the documentation.

On the Google Compute Engine page, it outlines how to go about generating a client secrets JSON file and a client private key.

On step 4, it says to 'Click "Registered apps" in the left sidebar', but on my page that link is missing. I do not know if this is because the documentation is incorrect or out of date, or if there is something different about my GCE account.

Either way, updated documentation or an alternative way to generate the certificate would be greatly appreciated. Thanks!

@dmerrick
Copy link
Author

Apparently this person is also experiencing the same issue:

http://serverfault.com/questions/562619/google-cloud-services-registered-apps-missing

@dmerrick
Copy link
Author

Alright it seems like Google changed the way they do this part of the process. The "Registered apps" section has been removed, and instead we are to use service accounts.

The instructions in the documentation should look like this:

  1. Log into the Google Cloud Console
  2. Click on the project you want to use Packer with (or create one if you don't have one yet).
  3. Click "APIs & auth" in the left sidebar
  4. Click "Credentials" in the left sidebar
  5. Click "Create New Client ID" and choose "Service Account."
  6. A private key will be downloaded for you. Note the password for the private key! This private key is your client private key.
  7. After creating the account, click "Download JSON". This is your client secrets JSON file. Make sure you didn't download the JSON from the "OAuth 2.0" section! This is a common mistake and will cause the builder to not work.

@dmerrick
Copy link
Author

@mitchellh I'm now realizing perhaps I shouldn't have closed this.

Will you please update the GCE documentation so other people don't get stuck like I did?

Thank you!

@pearkes pearkes reopened this Jan 15, 2014
@pearkes
Copy link
Contributor

pearkes commented Jan 15, 2014

@dmerrick Hey, ya these new instructions are helpful. Do you want to try your hand at a pull request against the documentation? It's in this repo in the website/ directory.

If not, I'm sure someone will be able to fix it...I'll rename the issue to make it clearer.

@pearkes
Copy link
Contributor

pearkes commented Jan 16, 2014

Closed via 2f570c7

@pearkes pearkes closed this as completed Jan 16, 2014
@darron
Copy link

darron commented Feb 3, 2014

This was really helpful to me - I notice that it's been closed and merged, but it's not on the site yet. I know you've got lots to do - anyway I can help?

@dmerrick
Copy link
Author

dmerrick commented Feb 3, 2014

I'm glad it was helpful!

I presume the online docs will be updated when the next Packer version is released. Hopefully soon, cause I imagine lots of people are getting stuck at this point in the docs.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants