Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.19 KB

File metadata and controls

52 lines (37 loc) · 1.19 KB

gcloud commands

IAM

# Create a service account 
gcloud iam service-accounts create instancestorage  --display-name="Instance to Storage"

# Create a Key to Service account
gcloud iam service-accounts keys create key.json --iam-account=<SVC_ACCOUNT_MAIL_ID>

# add storge viewer role to the newly created serviceaccount
gcloud projects add-iam-policy-binding --member=serviceAccount:<SVC_ACCOUNT_MAIL_ID> --role=roles/storage.objectViewer

# Set service account
gcloud config set account <SVC_ACCOUNT_MAIL_ID>

# Authenticate svc account with the key created
gcloud auth activate-service-account <SVC_ACCOUNT_MAIL_ID> --key-file=key.json

Service Account

VPC

  • firewall
  • vpc
  • subnets

GCE

disk

image

bucket

cloud Sql

  • cloud sql instance
  • db creation
  • user creation

App Engine

Cloud Run

New Service

gcloud run deploy cliservice --image us-central1-docker.pkg.dev/quantum-weft-420714/boa-repo/python:v1 --region us-central1 --allow-unauthenticated

No Traffic

gcloud run deploy cliservice --region us-central1 --image us-central1-docker.pkg.dev/quantum-weft-420714/boa-repo/python:purple --allow-unauthenticated --no-traffi