+ CREATE SECRET
.bigquery_credentials
.CREATE SECRET
.Note This code example assumes your credentials JSON file downloaded from GCP is namedgcp_credentials.json
and that the mount path (e.g.-v
) you used when running Docker is/home/secrets
.
gcloud
CLI.env
file in your Mage project folder with the following values:
GOOGLE_APPLICATION_CREDENTIALS
.
Follow these instructions to learn how to do this.
For example, set the environment variable to:
GOOGLE_APPLICATION_CREDENTIALS
:
Full path to your GCP service account credentials JSON file.
You can upload the credentials file directly to the Mage Pro cluster using the file browser interface.
GCP_PROJECT_ID
:
The Google Cloud Project ID associated with your Secret Manager secrets.
Secret Manager Secret Accessor
permissions for the secrets you intend to retrieve.