Created
October 31, 2020 17:23
-
-
Save Geremie/52f248eb8cf03728ae7b8b713e9b4e0c to your computer and use it in GitHub Desktop.
Automate your Cloud SQL data synchronization to BigQuery with Airflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud iam service-accounts create cloud-composer --display-name='Cloud Composer service account' | |
gcloud projects add-iam-policy-binding <project_id> --member=serviceAccount:cloud-composer@<project_id>.iam.gserviceaccount.com --role=roles/composer.worker | |
gcloud projects add-iam-policy-binding <project_id> --member=serviceAccount:cloud-composer@<project_id>.iam.gserviceaccount.com --role=roles/cloudsql.client | |
gcloud projects add-iam-policy-binding <project_id> --member=serviceAccount:cloud-composer@<project_id>.iam.gserviceaccount.com --role=roles/bigquery.user | |
gcloud projects add-iam-policy-binding <project_id> --member=serviceAccount:cloud-composer@<project_id>.iam.gserviceaccount.com --role=roles/bigquery.dataEditor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment