-
Notifications
You must be signed in to change notification settings - Fork 5
Google Cloud Configuration Notes
Oscar D. Garcia edited this page Jun 29, 2023
·
6 revisions
Create a Google account. Here
- Create a new project
- Make sure to keep track of the Project ID and the location for your project
- 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:
- 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
- install the SDK and CLI Tools
- Validate the installation and login to GCP with the following commands
$ 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
Written by Oscar Garcia Contact Twitter @ozkary Website ozkary.com