Google Cloud

Manage Google Cloud resources via gcloud CLI. Compute, storage, and cloud functions.

kbarbel640-del Updated 1 repo stars

File contents

Google Cloud Platform

Cloud infrastructure and services.

Auth

gcloud auth login
gcloud config set project PROJECT_ID

Compute Engine

gcloud compute instances list
gcloud compute instances create vm-name --zone=us-central1-a --machine-type=e2-micro
gcloud compute instances stop vm-name --zone=us-central1-a

Cloud Functions

gcloud functions list
gcloud functions deploy myFunction --runtime nodejs18 --trigger-http --allow-unauthenticated
gcloud functions call myFunction --data '{"name": "test"}'

Cloud Storage

gsutil ls gs://bucket-name/
gsutil cp file.txt gs://bucket-name/
gsutil cp gs://bucket-name/file.txt ./

Cloud Run

gcloud run services list
gcloud run deploy service-name --image gcr.io/project/image --platform managed

Links

kbarbel640-del/skills/tree/main/skills/mrgoodb/google-cloud commit c4d5d91a0e

Frequently asked questions

npx skillmds@latest add kbarbel640-del/google-cloud