airflow[gcp_api]
Conn Id:google_cloud_default
Conn Type:Google Cloud Platform
Project Id:[your project id]
Keyfile Path:[path to your service account keyfile]
Scopes:[comma-separated list of scopes]
from airflow.providers.google.cloud.hooks.gcs import GCSHook
def my_dag(): gcs_hook = GCSHook() # do something with the hook, e.g. list buckets buckets = gcs_hook.list() print(buckets)