Console, gcloud & Cloud Shell

Three Ways to Work

ToolUse
Cloud Console (console.cloud.google.com)web UI: explore, create and monitor resources
gcloud CLIscripts and repeatable commands (Google Cloud SDK)
Cloud Shella browser terminal with gcloud, Docker, kubectl and 5 GB home disk, free
Terraform / client librariesinfrastructure as code, and calling GCP from your apps

Set Up gcloud

Example

gcloud init                                   # log in and pick a default project
gcloud config set project shop-dev-1234
gcloud config set compute/region asia-south1
gcloud config list

Example output

[compute]
region = asia-south1
[core]
account = [email protected]
project = shop-dev-1234

Enable APIs

Example

Each service is an API that must be enabled in the project before use:

gcloud services enable run.googleapis.com sqladmin.googleapis.com artifactregistry.googleapis.com

Example output

Operation "operations/acf.p2-123456789012-..." finished successfully.