At a glance
What you need
- Administrator access to your AWS, Azure or Google Cloud organization
- A security key or passkey for each administrator
- Your identity provider (Microsoft Entra ID, Google Workspace or similar)
Most cloud breaches are not clever attacks on the provider. They are an administrator account without multi-factor authentication, an access key pasted into a repository, or a storage bucket left open to the world. This guide covers the first-day settings that close those doors in Amazon Web Services, Microsoft Azure and Google Cloud.
👑
Protect the top account
Lock it away, with strong multi-factor authentication.
🪪
People and code get roles
Single sign-on and short-lived credentials, never shared keys.
🔭
Log, block, alert
Audit logs, guardrails and a budget alarm, from day one.
1. Lock away the most powerful account
- AWS root user, Azure Global Administrator, Google Cloud Super Admin and Organization Administrator: phishing-resistant multi-factor authentication (a security key or passkey), and a strong unique password in your password manager.
- No access keys for the AWS root user, ever. Delete any that exist.
- Use the top account only for the few tasks that need it. Daily work happens in ordinary roles.
- Keep two emergency ("break-glass") accounts, excluded from rules that could lock everyone out, with their use alerting the whole team.
2. People sign in once; code gets temporary credentials
For people
- Single sign-on from your identity provider: IAM Identity Center (AWS), Microsoft Entra ID (Azure), Cloud Identity or Workspace (Google Cloud)
- Multi-factor authentication required for everyone
- Roles by job (read-only, developer, administrator), granted to groups, not individuals
For code
- Roles attached to the workload: IAM roles, managed identities, service accounts
- CI pipelines use OpenID Connect federation, not stored keys
- Permissions trimmed with the provider's access analysis tools
❌ The classic breach
A long-lived access key with administrator rights, created "just for testing", ends up in a public repository or a laptop backup. Within minutes, someone is starting expensive servers in every region. Search for and remove such keys, and alert when a new one is created.
3. Turn on the audit logs
- AWS: an organization-wide CloudTrail trail for all regions, delivered to a separate, locked-down log account.
- Azure: send the Activity Log and Microsoft Entra sign-in and audit logs to a Log Analytics workspace, with a retention period that meets your needs.
- Google Cloud: Admin Activity audit logs are always on; enable Data Access logs for sensitive services and route logs to a separate project.
Logs you cannot reach after an incident are no help. Keep them in a place the people who run production cannot delete.
4. Block public data by default
- AWS: S3 Block Public Access at the account level (on by default for new buckets since 2023, but check older ones).
- Azure: disallow anonymous blob access on storage accounts, and prefer private endpoints.
- Google Cloud: enforce public access prevention on Cloud Storage with an organization policy.
Then add guardrails that apply to everyone, including administrators: AWS Service Control Policies, Azure Policy or Google Cloud Organization Policies. Use them to forbid public storage, require encryption and limit resources to approved regions.
5. Detection and a budget alarm
- Turn on the provider's threat detection: Amazon GuardDuty, Microsoft Defender for Cloud, or Google Security Command Center.
- Set a budget with alerts at 50, 80 and 100 percent. A sudden bill is often the first sign of a stolen key.
- Send alerts somewhere a person reads, such as a team channel or an on-call phone, not an unread mailbox.
In the cloud, identity is the perimeter. Protect the accounts and you protect almost everything else.
Keeping data in Canada
If your customers or contracts require Canadian data residency, all three providers have Canadian regions: AWS Canada (Central) in Montréal and Canada West in Calgary; Azure Canada Central in Toronto and Canada East in Québec City; Google Cloud in Montréal and Toronto. Use a region guardrail so nobody creates resources elsewhere by mistake. Remember that residency is not the whole story: who can access the data, and under which laws, matters too.
First-day cloud checklist
- Top accounts protected with security keys; no root access keys
- Two break-glass accounts, monitored
- Single sign-on and multi-factor authentication for every person
- Workload roles and OIDC for CI; no long-lived keys
- Audit logs on, in a separate locked-down account or project
- Public storage blocked; guardrails for regions and encryption
- Threat detection on; budget alerts set
Keep learning
Next: harden Microsoft Entra ID, and set up logging and detection.
