12.1 · The three stacks in one table
| Capability | AWS | Azure | GCP |
|---|---|---|---|
| Source repo | CodeCommit | Azure Repos / GitHub Enterprise | Cloud Source Repositories |
| CI build | CodeBuild | Azure Pipelines / GitHub Actions | Cloud Build |
| Deploy | CodeDeploy + CodePipeline | Azure Pipelines (release) / GitHub Deployments | Cloud Deploy |
| Artifact / package | CodeArtifact, ECR | Azure Artifacts, ACR | Artifact Registry |
| K8s | EKS, EKS Auto Mode (2024) | AKS, AKS Automatic (2024) | GKE, GKE Autopilot |
| Serverless containers | App Runner, ECS Fargate | Container Apps | Cloud Run |
| FaaS | Lambda | Functions | Cloud Functions (2nd gen on Cloud Run) |
| IaC native | CloudFormation, CDK, SAM | Bicep / ARM | Deployment Manager / Config Connector |
| IDP | AWS Proton | Azure Deployment Environments + Dev Box | (third-party — Backstage) |
| Identity to CI | OIDC → IAM Role | OIDC → Federated Credentials | Workload 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.
| Pillar | Azure DevOps Services | GitHub on Azure |
|---|---|---|
| Boards | Azure Boards (Kanban + Scrum) | GitHub Projects (beta → GA 2022) |
| Repos | Azure Repos (Git + TFVC) | GitHub Repos |
| CI/CD | Azure Pipelines (YAML, self-hosted or MS-hosted agents) | GitHub Actions (Azure-hosted runners + ARC) |
| Packages | Azure Artifacts (NuGet/npm/Maven/Python) | GitHub Packages |
| Test | Test 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.
| Cloud | What you create | Trust condition example |
|---|---|---|
| AWS | IAM OIDC provider + IAM Role with trust policy | token.actions.githubusercontent.com:sub = repo:acme/web:ref:refs/heads/main |
| Azure | App registration + Federated Identity Credential | Subject repo:acme/web:environment:prod; audience api://AzureADTokenExchange |
| GCP | Workload Identity Pool + Provider + bound Service Account | Attribute 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
| Cloud | Reference | Account / sub model |
|---|---|---|
| AWS | Control Tower + Landing Zone Accelerator (LZA) | Org → OUs (Security, Sandbox, Workloads/Prod, Workloads/Dev) → accounts per workload × env. |
| Azure | Azure Landing Zones (Cloud Adoption Framework) | Tenant root → Management Groups → subscriptions per platform / landing-zone. |
| GCP | Cloud Foundation Toolkit + Enterprise Foundations Blueprint | Org → folders (bootstrap, common, prod, non-prod) → projects per workload. |
12.8 · Networking for DevOps
| Pattern | AWS | Azure | GCP |
|---|---|---|---|
| Hub-spoke transit | Transit Gateway | Virtual WAN (vWAN) | Network Connectivity Center |
| VPC-to-VPC | VPC peering | VNet peering | VPC Network Peering |
| Private service exposure | PrivateLink + VPC endpoints | Private Endpoint + Private Link Service | Private Service Connect |
| DNS | Route 53 Resolver + endpoints | Azure Private DNS | Cloud DNS private zones |
| Egress control | NAT GW + Network Firewall | Azure Firewall | Cloud 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
| Need | AWS | Azure | GCP |
|---|---|---|---|
| Cost visibility | Cost Explorer, CUR 2.0 / Data Exports | Cost Management + Billing | Billing reports + BigQuery export |
| Right-sizing | Compute Optimizer | Advisor | Active Assist (Recommender) |
| Commitments | Savings Plans, Reserved Instances | Reservations, Savings Plans | CUDs (1y/3y), Spot VMs |
| Sustainability | Customer Carbon Footprint Tool | Emissions Impact Dashboard | Carbon 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
| Layer | Portability | Why |
|---|---|---|
| OCI container images | Standardised; pushed to any registry. | |
| Kubernetes manifests / Helm / Kustomize | Same API; CSI & CNI swaps are minor. | |
| OpenTofu / Terraform modules | HCL travels; provider blocks and resource shapes don't. | |
| Object storage | S3 / Blob / GCS — APIs differ but rclone & storage transfer services exist. | |
| Managed databases | Aurora ↔ Hyperscale ↔ AlloyDB — proprietary extensions, IAM, backups. | |
| Queues / pubsub | SQS ↔ Service Bus ↔ Pub/Sub — different ordering, dedup, semantics. | |
| Identity / IAM | Policy languages, principal models all differ. Re-author. | |
| Networking | VPC / VNet semantics, PrivateLink equivalents — re-architect. |