Created
April 16, 2022 20:30
-
-
Save Geremie/81941400005e6156d4534fdb704697f7 to your computer and use it in GitHub Desktop.
If you are using Python and Google Cloud Platform, this will Simplify Life for you (Part 2)
This file contains hidden or 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 <your_service_account_id> | |
| # Add the composer worker role to the service account | |
| gcloud projects add-iam-policy-binding <project_id> \ | |
| --member=serviceAccount:<your_service_account_id>@<project_id>.iam.gserviceaccount.com \ | |
| --role=roles/composer.worker | |
| # Deploy the cloud composer environment | |
| gcloud composer environments create <your_environment_name> --location=<your_location_name> \ | |
| --zone=<your_zone_name> --service-account=<your_service_account_id>@<project_id>.iam.gserviceaccount.com \ | |
| --python-version=3 --image-version=composer-1.17.8-airflow-2.1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment