Skip to content

Google Cloud Configuration Notes

Oscar D. Garcia edited this page Apr 2, 2023 · 6 revisions

Configure GCP Cloud Environment

Create a Google account. Here

  • Create a new project
  • Make sure to keep track of the Project ID and the location for your project

Create a service account

  • In the left-hand menu, click on "IAM & Admin" and then select "Service accounts"
  • Click on the "Create Service Account" button at the top of the page
  • Enter a name for the service account and an optional description
  • Then add the BigQuery Admin, Storage Admin, Storage Object Admin as roles for our service account and click the save button.
  • Enable IAM APIs by clicking the following links:

Authenticate the VM or Local environment with GCP

  • In the left navigation menu, click on "IAM & Admin" and then "Service accounts"
  • Click on the three verticals dots under the action section for the service name you just created
  • Then click Manage keys, Add key, Create new key. Select JSON option and click Create
  • Move the key file to a system folder
$ mkdir -p $HOME/.gcp/ 
$ mv ~/Downloads/{xxxxxx}.json ~/.gcp/{acc_credentials}.json
echo 'export GOOGLE_APPLICATION_CREDENTIALS="~/.gcp/{acc_credentials}.json"' >> ~/.bashrc
export GOOGLE_APPLICATION_CREDENTIALS="~/.gcp/{acc_credentials}.json"
gcloud auth application-default login
  • Follow the login process
Clone this wiki locally