Last active
September 11, 2020 08:53
-
-
Save dice89/3fb51ea09957264e4f7703da82ae6b0d to your computer and use it in GitHub Desktop.
Create Service Account
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 projects create <your>-dl --enable-cloud-apis | |
gcloud config set project <your>-dl | |
gcloud services enable compute.googleapis.com | |
gcloud iam service-accounts create gcp-terraform-dl --display-name gcp-terraform-dl | |
gcloud projects add-iam-policy-binding <your>-dl \ | |
--member='serviceAccount:gcp-terraform-dl@ <your>-dl.iam.gserviceaccount.com' --role='roles/owner' | |
gcloud iam service-accounts keys create 'credentials.json' --iam-account='gcp-terraform-dl@<your>-dl.iam.gserviceaccount.com' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment