Google Cloud Platform (GCP) Reference
Kip Landergren
(Updated: )
My cheat sheet for Google Cloud Platform covering terminology, common commands, and links to the most helpful documentation resources.
Contents
Terminology
Resources
address | an IP address, may be ephemeral or reserved |
forwarding-rule | directs traffic matching an address to a forwarding target, like a target-pool |
target-pool | load-balanced pool of virtual machine instances |
region | a specific geographic location where your resources run |
zone | an isolated location within a region; name take form <region>-<zone> |
Tooling
gcloud |
CLI tool for managing Google Cloud Platform resources |
gsutil |
CLI tool for managing Cloud Storage |
Commands
gcloud
is bundled with excellent help pages; when in doubt on how a command works append --help
to discover more.
info
gcloud info
config
View, set and unset properties used by the Google Cloud SDK. Reduces the amount of flags needing to be passe don other commands.
gcloud config --help
gcloud config list
gcloud config set project example-com
gcloud config set compute/region us-west2
gcloud config unset compute/region
iam
gcloud iam --help
gcloud iam roles --help
gcloud iam service-accounts --help
dns
gcloud dns --help
addresses
gcloud compute addresses --help
gcloud compute addresses list
gcloud compute addresses create example-com-static-ip
gcloud compute addresses create example-com-global-static-ip --global
gcloud compute addresses create example-com-regional-static-ip --region=us-west2
gcloud compute addresses delete example-com-static-ip
forwarding-rules
gcloud compute forwarding-rules --help
gcloud compute forwarding-rules list
gcloud compute forwarding-rules describe NAME
gcloud compute forwarding-rules delete NAME