RousselTMLEARNING

Cloud computing

Google Cloud best practices: organization, security, reliability and costs

Best practices for operating Google Cloud: organization and folders, projects per environment, IAM through groups, keyless service accounts, private networking, encryption, regional high availability, observability, infrastructure as code and cost control.

1. Organization and identities #

The foundations.

Rules #

Recommended organization
Inspired by Google's « enterprise foundations blueprint ».
  • Separate projects per environment and application.
  • IAM bindings on groups; no basic roles in production.
  • Keyless service accounts; Workload Identity Federation for CI.
  • Organization policies: regions, public IPs, service account keys.

2. Security and reliability #

Protecting and holding up.

Rules #

  • VMs without public IPs, Cloud NAT and IAP for administration.
  • Secret Manager, CMEK if required, VPC Service Controls for sensitive data.
  • Regional services (MIG, GKE, Cloud SQL HA) across several zones.
  • Audit logs exported to a dedicated project.

3. Operations and costs #

Lasting without drifting.

Rules #

  • Infrastructure in Terraform, deployed by pipeline.
  • Dashboards and SLOs in Cloud Monitoring.
  • Labels to allocate costs; budgets per project; billing export to BigQuery.
  • Committed use discounts for the baseline, Spot VMs for interruptible processing.
gcloud projects list --format="table(projectId,parent.id)"
gcloud resource-manager org-policies list --project=mon-projet
gcloud compute instances list --filter="networkInterfaces[].accessConfigs[0].natIP:*" --format="table(name,zone)"   # VM avec IP publique
gcloud iam service-accounts keys list --iam-account=api@mon-projet.iam.gserviceaccount.com --managed-by=user

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!