- Clone Repo Airflow Docker
- Build a docker image from
cd docker-airflow docker build --rm --build-arg AIRFLOW_DEPS="gcp" -t tpc-di/benchmark-airflow .
- Ensure image is created by executing
docker images
- Run the following command to start Apache Airflow
docker-compose up -d
- Navigate to Airflow Web UI

- Navigate to GCP BigQuery API and enable it if not already enabled
- Navigate to the Credential Page

- Click on
Create Credentialbutton and chooseService Account
- Fill in
Service Account NameandID - Click on
Create - Grant
BigQuery AdminandStorage Adminroles andContinue
- Click on
Create Keyand chooseJSONkey
- Download generated JSON key and keep it safe
- Navigate to Admin -> Connections Connections Page

- Find
bigquery_defaultconnection or equivalent and edit to get the edit window
- Fill in the contents of
keyfile.jsonfrom GCP obtained in earlier step and save connection - Repeat the above steps to setup connection for
google_cloud_default