iac.htora.dev · security templates

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

  1. Most permissions attach at the level where resources live.
  2. "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.
AWSAzureGoogle CloudOracle Cloud
Resources live inAccountResource group, in a subscriptionProjectCompartment
Audit logCloudTrailActivity LogCloud Audit LogsAudit
Kept by default90 days90 days400 days of admin activity365 days, can be cut to 90
Write-once lockObject LockImmutability policyRetention policyRetention rule
Your own keysKMSKey VaultCloud KMSVault
Command lineawsazgcloudoci
Terraform signs in afteraws configure ssoaz logingcloud auth application-default loginoci setup config

Who am I? Run before every apply

AWSaws sts get-caller-identity
Azureaz account show --output table
Google Cloudgcloud config list
Oracle Cloudoci 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.

Read the full pageDownload PDF

Registry 0.23.0. Built 2026-11-17.

Made by Habibullah Tora. Source on GitHub. Code under the MIT licence, writing under CC BY 4.0.