GuidesAPI ReferenceDiscussions

GCP Environment

How to configure an environment for GCP.

Before You Begin

You must have the dbnd-gcp plugin installed.

To Set up an Environment for Google Cloud Platform

  1. Open the project.cfg file, and add gcp to the list of environments.
environments = ['local', 'gcp']
  1. In the [gcp] section, set your Airflow connection ID, and optionally provide the root bucket/folder for your metadata store.
root = gs://databand_examples
conn_id =google_cloud_default
  1. To configure the default connection with your Google Cloud project ID, in the command line run the following command:
$ dbnd airflow connections --add \
    --conn_id google_cloud_default \
    --conn_type google_cloud \
    --project_id <your project ID>
  1. To use the default Google Cloud credentials, run the following command:
gcloud auth application-default login

What’s Next
Did this page help you?