RousselTMLEARNING

Cloud computing

Operating Google Cloud: observability, security, infrastructure as code and costs

Operate Google Cloud: Cloud Monitoring, Cloud Logging and Cloud Trace (Google Cloud Observability), Security Command Center, Secret Manager and Cloud KMS, Terraform and Infrastructure Manager, budgets and recommendations, and the Google Cloud Architecture Framework.

1. Observability #

Monitoring, Logging, Trace.

Principles #

Operating Google Cloud
Audit logs, observability and security are enabled per project or per organization.
gcloud logging read 'resource.type="cloud_run_revision" AND severity>=ERROR' --limit=10 --freshness=1d
gcloud logging sinks create vers-bq bigquery.googleapis.com/projects/mon-projet/datasets/journaux --log-filter='severity>=WARNING'
gcloud monitoring uptime create api-uptime --resource-type=uptime-url --resource-labels=host=api.exemple.fr,project_id=mon-projet

2. Security #

Secrets, keys, posture.

Services #

ServiceRole
Secret ManagerVersioned secrets, access through IAM
Cloud KMSManaged encryption keys (CMEK)
Security Command CenterInventory, misconfigurations, threats
Cloud ArmorWAF and DDoS protection in front of the load balancer
Binary AuthorizationAllow only signed images on GKE and Cloud Run

3. Infrastructure as code and costs #

Automating and controlling.

Practices #

  • Terraform (google provider) or Infrastructure Manager (Terraform managed by Google).
  • Deployment through Cloud Build or GitHub Actions with Workload Identity Federation.
  • Budgets, billing export to BigQuery, Active Assist recommendations (idle VMs, right-sizing).
  • Google Cloud Architecture Framework: operational excellence, security, reliability, costs, performance, sustainability.
gcloud billing budgets create --billing-account=<id> --display-name="Budget formation" --budget-amount=50EUR --threshold-rule=percent=0.8
gcloud recommender recommendations list --recommender=google.compute.instance.MachineTypeRecommender --project=mon-projet --location=europe-west9-a

Related articles

Observability on Google Cloud: Cloud Monitoring, Logging, Trace, Profiler and Managed Prometheus

A complete overview of Google Cloud Observability: Cloud Monitoring, Cloud Logging (router, sinks, Log Analyt…

Understanding Google Cloud: regions, projects, hierarchy, tools and pricing

Google Cloud basics: regions and zones, the organization, folders and projects hierarchy, APIs to enable, con…

IAM on Google Cloud: roles, service accounts and organization policies

Manage access on Google Cloud: principals, basic, predefined and custom roles, IAM bindings, service accounts…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!