liveBook · Manning

Service account key

As explained in Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A service account key is a credential containing information, including a private key, for authenticating software as a Google Cloud service account.

A service account key is a credential containing a private key and other authentication information. Automated Google Cloud workflows use it to authenticate as a service account instead of relying on an individual’s identity. section 11.2.2 section 11.1.2

Prepare a key for an automated Vertex AI pipeline:

  • Open the service account, select Keys, choose Add key → Create new key, select JSON, and download the generated file. section 11.2.2
  • Upload the JSON file to the Cloud Shell directory where the pipeline script runs, then verify it with ls. section 11.2.5
  • Set GOOGLE_APPLICATION_CREDENTIALS to the file’s fully qualified path and confirm the value before running the pipeline. section 11.2.5

Cloud Shell configuration

A pipeline setup can place the key in ~/ml_pipeline and point authentication to /home/ryanmark2023/ml_pipeline/first-project-ml-tabular-039ff1f820a8.json with GOOGLE_APPLICATION_CREDENTIALS. section 11.2.5

Figure 11.6 Selecting the service account

Use the service-account selection and key-creation figures to follow the console workflow from account selection through JSON download. section 11.2.2

How Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI covers it

How deep it goes
Explains JSON creation, Cloud Shell upload, path configuration, and validation, but does not detail credential internals.
Examples
Uses a downloaded JSON filename, an ml_pipeline directory, ls validation, and GOOGLE_APPLICATION_CREDENTIALS path configuration.
What it assumes
Assumes a created service account and Cloud Shell access; teaches the key creation and local pipeline setup steps.
What you can do after
Operate/configure a pipeline environment by creating, uploading, locating, and registering a JSON service account key.
How it connects
Connects service accounts with Google Cloud, Cloud Shell, Vertex AI, environment variables, and machine-learning pipelines.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI. The section links point to the parts of the book it draws on.