Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
$ als gewone gebruiker# als root (of met sudo)
Vaardigheden in dit hoofdstuk
- Cloud-CLI's — 4
Azure CLI
az manages Azure: resource groups, VMs, AKS, Key Vault, role assignments.
AWS CLI
aws manages AWS: EC2, S3, IAM, EKS, CloudWatch — with profiles per account.
gcloud
gcloud manages Google Cloud: projects, VMs, GKE, Cloud Run, IAM.
eksctl
eksctl makes EKS clusters with node groups and IAM roles for pods from one YAML file.
Know the same service in three clouds
One table for the names you meet in job ads.
| Building block | Azure | AWS | Google Cloud |
|---|---|---|---|
| Network | VNet | VPC | VPC |
| VM | Virtual Machine | EC2 | Compute Engine |
| Managed Kubernetes | AKS | EKS | GKE |
| Containers without servers | Container Apps | ECS / Fargate | Cloud Run |
| Object storage | Blob Storage | S3 | Cloud Storage |
| Secrets | Key Vault | Secrets Manager | Secret Manager |
| Identity for workloads | Managed Identity | IAM roles | Service accounts |
| Monitoring | Azure Monitor | CloudWatch | Cloud Monitoring |
| IaC native | Bicep / ARM | CloudFormation | Deployment Manager |
Log in from CI without stored keys
GitHub Actions and GitLab can get short-lived cloud tokens with OIDC — no secret keys in the pipeline.
- Azure: a federated credential on an app registration;
azure/loginwithclient-id,tenant-id,subscription-id. - AWS: an IAM role that trusts
token.actions.githubusercontent.com;aws-actions/configure-aws-credentials. - Google Cloud: Workload Identity Federation;
google-github-actions/auth.
Onthoud
Check the active account before every delete: az account show, aws sts get-caller-identity, gcloud config list.