Sub topic 1
Why one account is not enough
Prerequisites
This chapter assumes you know what an AWS account and a Region are, and that you have used services such as EC2 and S3. You should also know IAM basics: users, roles, and JSON policy documents. No hands-on setup is needed here. Later chapters build the structure this chapter argues for.
The account is the strongest boundary AWS gives you
An AWS account is a container for resources, and it is the one boundary AWS enforces by default. By default, a principal in one account has no access to another account's resources. IAM policies, tags, and VPCs inside one account are weaker, because a mistake in a single policy can open access to everything beside it.
Teams that start with one account often end up with development, test, and production workloads side by side. Over time, the problems below appear.
Four problems a single account causes
- Blast radius. A leaked access key, a bad Terraform run, or a runaway script can affect every workload in the account. Separate accounts limit the damage to one account.
- Permission sprawl. To keep teams apart in one account, you write long IAM policies with tag conditions and resource name prefixes. These policies are hard to review and easy to get wrong.
- Quotas. Most service quotas apply per account and per Region. One busy workload can use up the limit for the others.
- Cost visibility. Splitting a shared bill by team requires consistent tagging. Untagged resources, and services that cannot be tagged, end up unassigned. With one account per workload, the bill is already divided.
Compliance adds a fifth reason. An auditor can review a small account that holds regulated data. Reviewing a large shared account that holds everything is much harder.
What a multi-account layout looks like
A common starting point separates accounts by purpose and by environment. The diagram shows a typical set.
Each box is a separate account. The management account sits at the top and controls the others. Later chapters explain how AWS Organizations provides that control.
Costs of splitting
More accounts means more to manage. You have to create accounts consistently, sign in to them, apply the same security settings, and move data or traffic between them on purpose. Doing this by hand does not scale. That is why the rest of this tutorial covers AWS Organizations, guardrails, single sign-on, and automation.
Choosing how to split
A useful rule is to separate anything that differs in one of these ways: who owns it, how sensitive its data is, or how much failure you can tolerate. Production and non-production should always be apart. Security tooling and logs should live in accounts that workload teams cannot change.
Exercise
A team runs development and production in one account. A developer's script deletes the wrong set of resources, and production goes down. Which problem does this show, and how would separate accounts help?
Show answer
It shows a large blast radius. With production in its own account, a developer's credentials and scripts in the development account cannot reach production resources by default, so the same mistake would only affect development.
Exercise
Name two reasons, other than security, why a company might give each workload its own account.
Show answer
Any two of: service quotas apply per account so workloads do not compete for limits, the bill is naturally separated by workload without relying on tags, and compliance reviews can be limited to the accounts that hold regulated data.