- 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 Credential
button and chooseService Account
- Fill in
Service Account Name
andID
- Click on
Create
- Grant
BigQuery Admin
andStorage Admin
roles andContinue
- Click on
Create Key
and chooseJSON
key - Download generated JSON key and keep it safe
- Navigate to Admin -> Connections Connections Page
- Find
bigquery_default
connection or equivalent and edit to get the edit window - Fill in the contents of
keyfile.json
from GCP obtained in earlier step and save connection - Repeat the above steps to setup connection for
google_cloud_default