> +  * One can create a service account and use its private key to authenticate.
> +  * Unless configured otherwise, programs running on a GCE instance can 
> perform operations as the project's default service account 
> ([documentation](https://developers.google.com/compute/docs/authentication)).
> +
> +You can find all the details in [the 
> documentation](https://developers.google.com/accounts/docs/OAuth2), while in 
> these examples we will focus only on service accounts (bullet 2).
> +
> +To create a new service account:
> +
> +  * Go to the [Developer Console](https://console.developers.google.com/).
> +  * Choose API & auth > Credentials.
> +  * Click "Create new Client ID".
> +  * Select "Service account" and click "Create service ID".
> +  * Details of the new service account will be displayed. You will also be 
> able to download the private key for this account, which you will need for 
> authentication. Make a note of the service account email address - you will 
> need it to use the account.
> +  * To keep the examples simple, we use private keys without passwords. It 
> might be something you will not do in a production environment, but for the 
> examples run: `openssl pkcs12 -in {downloaded_file}.p12 -nodes -out 
> gcp-example.pem  -passin pass:notasecret`.
> +
> +## <a id="examples"></a>Running examples
> +A good starting point for using GCE vis jclouds is to run [examples 
> programs](https://github.com/jclouds/jclouds-examples/tree/master/google/src/main/java/org/jclouds/examples/google/computeengine).
>  For this, download the 
> [jclouds-example](https://github.com/jclouds/jclouds-examples) repository and 
> build the "google" Maven project. Each example can be run by passing the 
> service account email as the first parameter and the path to the 
> gcp-example.pem file (created by removing the password from the *.p12 file by 
> the command above) as the second.

"...is to run the examples. Download the [jclouds-example](...) repository and 
build the 
[google](https://github.com/jclouds/jclouds-examples/tree/master/google) 
subproject. For details on how to run the examples, see the [README](...)."

And create a README file in the examples repo similar to the [Rackspace example 
README](https://github.com/jclouds/jclouds-examples/blob/master/rackspace/README.md)?
 Then we can also remove the next paragraph, which probably belongs in that 
README. The same might also go for the last paragraph?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/98/files#r13522420

Reply via email to