LOOP · The DevOps Codex
Ch 12 · Cloud DevOps Stacks
Chapter 12 · The Three Hyperscalers

Cloud DevOps Stacks — AWS · Azure · GCP, compared

Every cloud ships its own opinionated DevOps suite — pipelines, registries, IaC engines, identity, networking. They look interchangeable on paper, but the defaults shape your architecture. This chapter maps the three big stacks side-by-side, explains OIDC federation (the end of static keys), landing zones, hybrid/edge options, and what is — and is not — portable when you change cloud.

12.1 · The three stacks in one table

CapabilityAWSAzureGCP
Source repoCodeCommit closed to new orgs Jul 2024Azure Repos / GitHub EnterpriseCloud Source Repositories legacy / GitHub
CI buildCodeBuildAzure Pipelines / GitHub ActionsCloud Build
DeployCodeDeploy + CodePipelineAzure Pipelines (release) / GitHub DeploymentsCloud Deploy
Artifact / packageCodeArtifact, ECRAzure Artifacts, ACRArtifact Registry
K8sEKS, EKS Auto Mode (2024)AKS, AKS Automatic (2024)GKE, GKE Autopilot
Serverless containersApp Runner, ECS FargateContainer AppsCloud Run
FaaSLambdaFunctionsCloud Functions (2nd gen on Cloud Run)
IaC nativeCloudFormation, CDK, SAMBicep / ARMDeployment Manager / Config Connector
IDPAWS ProtonAzure Deployment Environments + Dev Box(third-party — Backstage)
Identity to CIOIDC → IAM RoleOIDC → Federated CredentialsWorkload Identity Federation

12.2 · AWS DevOps

Code* family

CodeCommit (git, closed to new orgs Jul 2024), CodeBuild (managed build), CodeDeploy (EC2/Lambda/ECS deploys w/ blue-green), CodePipeline (orchestrator), CodeArtifact (Maven/npm/PyPI/NuGet/Cargo).

Compute targets

EKS, ECS (Fargate / EC2), Lambda, App Runner (managed web apps), Elastic Beanstalk (legacy PaaS), OpsWorks (Chef/Puppet — end-of-life May 2024).

IaC

CloudFormation (YAML/JSON; StackSets for multi-account), AWS SAM (serverless DSL on top of CFN), AWS CDK v2 (TS/Py/Java/.NET/Go), AWS Copilot (ECS-first CLI).

IDP

AWS Proton — platform-team-authored templates exposed to dev teams as environments + services. Pairs well with Service Catalog.

Registry

ECR — OCI registry; image scanning (Basic / Enhanced via Inspector), pull-through cache, replication across regions.

Identity

IAM + IAM Identity Center (formerly SSO); permission sets, OIDC trust for CI providers, IAM Roles Anywhere for on-prem.

12.3 · Azure DevOps

Azure runs two overlapping DevOps brands: the legacy Azure DevOps Services (TFS heritage) and the strategic GitHub Enterprise + Actions stack since the 2018 Microsoft–GitHub acquisition.

PillarAzure DevOps ServicesGitHub on Azure
BoardsAzure Boards (Kanban + Scrum)GitHub Projects (beta → GA 2022)
ReposAzure Repos (Git + TFVC)GitHub Repos
CI/CDAzure Pipelines (YAML, self-hosted or MS-hosted agents)GitHub Actions (Azure-hosted runners + ARC)
PackagesAzure Artifacts (NuGet/npm/Maven/Python)GitHub Packages
TestTest Plans (manual + exploratory)(third-party)
Security—GitHub Advanced Security — CodeQL SAST, secret scanning, Dependabot, supply-chain attestations.
  • AKS (managed K8s; node auto-provisioning & AKS Automatic GA 2024), ACR (registry w/ Tasks builds + ACR Connected for edge).
  • Bicep is now Microsoft's preferred IaC over raw ARM (transpiled at deploy time by the ARM engine).
  • Azure Pipelines and GitHub Actions both support OIDC federation to Entra ID (no static AZURE_CLIENT_SECRET).

12.4 · GCP DevOps

Cloud Build

Server-less CI w/ build steps as containers; private pools for VPC-bound builds; provenance attestations (SLSA L3) since 2022.

Cloud Deploy

Managed continuous delivery to GKE, Cloud Run, Anthos; canary & phased rollouts; approval gates.

Artifact Registry

Replaced Container Registry in 2023. OCI + language packages + Apt/Yum + Remote & Virtual repos.

Compute

GKE Autopilot, Cloud Run (Knative-derived, scale-to-zero), Cloud Functions 2nd gen (runs on Cloud Run).

Source

Cloud Source Repositories (legacy mirror); most teams use GitHub/GitLab + Cloud Build trigger.

Identity

Workload Identity Federation — exchange OIDC/SAML tokens from CI for short-lived GCP credentials, no service-account keys.

12.5 · OIDC federation — the end of static keys

Definition. OIDC federation lets a CI provider mint a short-lived OpenID Connect token whose claims (repository, environment, workflow) the cloud's IAM trusts. The cloud exchanges that token for a temporary credential — zero long-lived secrets in CI.

CloudWhat you createTrust condition example
AWSIAM OIDC provider + IAM Role with trust policytoken.actions.githubusercontent.com:sub = repo:acme/web:ref:refs/heads/main
AzureApp registration + Federated Identity CredentialSubject repo:acme/web:environment:prod; audience api://AzureADTokenExchange
GCPWorkload Identity Pool + Provider + bound Service AccountAttribute assertion.repository == 'acme/web'
# GitHub Actions → AWS, no static keys
permissions:
  id-token: write
  contents: read
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: arn:aws:iam::111122223333:role/gha-deploy
          aws-region: eu-west-1

12.6 · Multi-cloud DevOps tooling

  • Terraform / OpenTofu / Pulumi / Crossplane — one IaC tool, N providers (Ch 10).
  • GitHub Actions self-hosted runners (ARC controller on K8s) — same pipelines on EKS, AKS, GKE.
  • Argo CD + ApplicationSets — one GitOps control plane, many target clusters.
  • OpenTelemetry Collector — vendor-neutral telemetry pipeline (Ch 13).
  • Backstage — IDP that abstracts which cloud is behind each component.

12.7 · Landing zones & account topology

CloudReferenceAccount / sub model
AWSControl Tower + Landing Zone Accelerator (LZA)Org → OUs (Security, Sandbox, Workloads/Prod, Workloads/Dev) → accounts per workload × env.
AzureAzure Landing Zones (Cloud Adoption Framework)Tenant root → Management Groups → subscriptions per platform / landing-zone.
GCPCloud Foundation Toolkit + Enterprise Foundations BlueprintOrg → folders (bootstrap, common, prod, non-prod) → projects per workload.
Org / Tenant root Security / Audit Shared services Workloads · Non-prod Workloads · Prod accounts (AWS) · subscriptions (Azure) · projects (GCP)

12.8 · Networking for DevOps

PatternAWSAzureGCP
Hub-spoke transitTransit GatewayVirtual WAN (vWAN)Network Connectivity Center
VPC-to-VPCVPC peeringVNet peeringVPC Network Peering
Private service exposurePrivateLink + VPC endpointsPrivate Endpoint + Private Link ServicePrivate Service Connect
DNSRoute 53 Resolver + endpointsAzure Private DNSCloud DNS private zones
Egress controlNAT GW + Network FirewallAzure FirewallCloud NAT + Cloud NGFW

12.9 · Hybrid & edge

AWS

Outposts (rack in your DC), Local Zones (metro extension), Wavelength (5G edge), Snow Family, EKS Anywhere.

Azure

Azure Stack HCI, Azure Stack Hub, Azure Stack Edge, Azure Arc (project on-prem & multi-cloud resources into Azure RM).

GCP

Anthos on-prem + bare-metal, GKE Enterprise, Distributed Cloud Edge, Distributed Cloud Air-gapped.

12.10 · Cost & sustainability per cloud

NeedAWSAzureGCP
Cost visibilityCost Explorer, CUR 2.0 / Data ExportsCost Management + BillingBilling reports + BigQuery export
Right-sizingCompute OptimizerAdvisorActive Assist (Recommender)
CommitmentsSavings Plans, Reserved InstancesReservations, Savings PlansCUDs (1y/3y), Spot VMs
SustainabilityCustomer Carbon Footprint ToolEmissions Impact DashboardCarbon Footprint (per project)

See Ch 19 (FinOps) for the operating model that uses these tools.

12.11 · Migrations between clouds — what travels and what doesn't

LayerPortabilityWhy
OCI container imagesHighStandardised; pushed to any registry.
Kubernetes manifests / Helm / KustomizeHighSame API; CSI & CNI swaps are minor.
OpenTofu / Terraform modulesMediumHCL travels; provider blocks and resource shapes don't.
Object storageMediumS3 / Blob / GCS — APIs differ but rclone & storage transfer services exist.
Managed databasesLowAurora ↔ Hyperscale ↔ AlloyDB — proprietary extensions, IAM, backups.
Queues / pubsubLowSQS ↔ Service Bus ↔ Pub/Sub — different ordering, dedup, semantics.
Identity / IAMLowPolicy languages, principal models all differ. Re-author.
NetworkingLowVPC / VNet semantics, PrivateLink equivalents — re-architect.
Reality check
"Multi-cloud" by default usually means you've adopted the lowest common denominator on every cloud — slower, costlier, and weaker than picking one and committing. Reserve true portability budget for workloads with a concrete reason (regulation, customer contract, disaster recovery).

12.12 · Self-check

Q1 · What does OIDC federation between GitHub Actions and AWS replace?
The IAM role itself
Long-lived IAM access keys stored as CI secrets
The Git push protocol
CloudTrail
Q2 · Which GCP service is the closest peer of AWS PrivateLink / Azure Private Endpoint?
Cloud Interconnect
Cloud Router
Private Service Connect
Cloud Armor
Q3 · Which workload layer is the least portable across clouds?
OCI container images
Kubernetes Deployment manifests
Identity & IAM policies
OpenTofu module HCL