Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmanok committed May 26, 2018
2 parents af3f3b5 + 4816ec9 commit a40d637
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions blogs/pandas-pvtkey/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
To try out the use of a private key JSON:

(1) Create a GCE instance *without* full access to gcloud. Notice that the creation menu asks for the service account and the defaults to [email protected]
* Create a GCE instance *without* full access to gcloud. Notice that the creation menu asks for the service account and the defaults to [email protected]
* Wait for ~60s for lock on /var/lib/dpkg to get releasedf
* sudo apt-get install -y git python-pip
* git clone https://github.com/GoogleCloudPlatform/training-data-analyst
* cd training-data-analyst/blogs/pandas-pvtkey
* ./install.sh
(2) run query.py or pkg_query.py after setting the project id appropriately
it will fail saying a key wasn't found
(3) In the GCP web console, navigate to IAM > Service Accounts and create a private key for the Compute Engine and upload to the specified location
(4) run query.py or pkg_query.py
* run query.py or pkg_query.py
* Edit the file to set the project id appropriately
* Run query.py
* It will <b>fail</b> saying a key wasn't found
* In the GCP web console, navigate to IAM > Service Accounts and create a private key for the Compute Engine and upload to the specified location
* run query.py or pkg_query.py
It will work now.

*If #4 fails with an error saying "Invalid JWT Signature.", you might need to enable the IAM API in the APIs and Services of the GCP web console
Note: If the last step fails with an error saying "Invalid JWT Signature.", you might need to enable the IAM API in the APIs and Services of the GCP web console

0 comments on commit a40d637

Please sign in to comment.