Home/Refreshers/The four clouds: refresher
The four clouds
AWS, Azure, Google Cloud, and Oracle Cloud share the same building blocks under different names.
Remember
- Most permissions attach at the level where resources live.
- "Role" means an identity in AWS, and a set of permissions in Azure and Google Cloud. Oracle Cloud writes permissions as sentences in a policy.
| AWS | Azure | Google Cloud | Oracle Cloud | |
|---|---|---|---|---|
| Resources live in | Account | Resource group, in a subscription | Project | Compartment |
| Audit log | CloudTrail | Activity Log | Cloud Audit Logs | Audit |
| Kept by default | 90 days | 90 days | 400 days of admin activity | 365 days, can be cut to 90 |
| Write-once lock | Object Lock | Immutability policy | Retention policy | Retention rule |
| Your own keys | KMS | Key Vault | Cloud KMS | Vault |
| Command line | aws | az | gcloud | oci |
| Terraform signs in after | aws configure sso | az login | gcloud auth application-default login | oci setup config |
Who am I? Run before every apply
| AWS | aws sts get-caller-identity |
| Azure | az account show --output table |
| Google Cloud | gcloud config list |
| Oracle Cloud | oci os ns get |
Watch out
- gcloud auth login signs in the command line tool only. Terraform needs gcloud auth application-default login.
- The Azure provider has required a subscription ID since version 4. Set ARM_SUBSCRIPTION_ID.
Check it worked
The who-am-I command names the account, subscription, project, or tenancy you meant.