Skip to content

Instantly share code, notes, and snippets.

@maelvls
Last active September 8, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maelvls/c8120dbae414db9fc1763c34b8818510 to your computer and use it in GitHub Desktop.
Save maelvls/c8120dbae414db9fc1763c34b8818510 to your computer and use it in GitHub Desktop.
Creating a gcloud project and service account for Rob Pike's upspin
gcloud projects create upspin42
gcloud iam service-accounts create --project  upspin-service-account
gcloud iam service-accounts create --project upspin42 upspin-service-account
gcloud projects add-iam-policy-binding upspin42 --role=roles/owner --member=serviceAccount:upspin-service-account@upspin42.iam.gserviceaccount.com
gcloud iam service-accounts keys create json_key.json --iam-account upspin-service-account@upspin42.iam.gserviceaccount.com --project upspin42
gcloud alpha billing projects link --billing-account $(gcloud alpha billing accounts list --format json | jq -r '.[0].name') upspin42

gcloud dns record-sets transaction start --zone maelvls
gcloud dns record-sets transaction add --project august-period-234610 --zone=maelvls --type=A --ttl 300 --name upspin.maelvls.dev. 34.89.156.68
gcloud dns record-sets transaction execute --zone maelvls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment