Sub topic 1
What an AWS account is
Prerequisites
This chapter assumes you have the following:
- Basic familiarity with cloud computing concepts, such as regions, services, and pay-as-you-go pricing.
- Comfort using a web browser and a command line.
- An email address and a phone number, which you will need later for sign-up and verification.
You do not need an AWS account yet. This chapter explains what you will create in the next one.
The account as a boundary
An AWS account is a container for resources and the identities that manage them. It has an account ID, a 12-digit number such as 111122223333. Every resource you create, such as a virtual server, a storage bucket, or a database, belongs to exactly one account.
The account acts as two boundaries at the same time:
- Security boundary. By default, nothing outside the account can see or change what is inside it. Access across accounts must be granted on purpose.
- Billing boundary. All usage inside the account is metered and charged to that account's payment method.
Because of these two boundaries, an account is the largest unit that a mistake or a compromise stays inside. Treat it as the main way to separate things, such as production from experiments.
Two kinds of identity
Two kinds of identity can act inside an account. They differ greatly in power.
| Identity | Created by | Permissions | Intended use |
|---|---|---|---|
| Root user | Sign-up, automatically | Unrestricted, cannot be limited by IAM policies | A few account-level tasks only |
| IAM identities (users, roles) | You, after sign-up | Only what policies grant | Daily work |
The root user is the identity tied to the email address you sign up with. It has full access to every resource and every setting. Identity and Access Management (IAM) is the AWS service that defines the other identities and the policies that limit them. An IAM identity starts with no permissions, and you add only the ones it needs.
This difference drives most of the safety steps in this tutorial. You will protect the root user heavily and then rarely use it.
What the account does not give you
A new account does not come with a safe configuration. Two defaults matter:
- The root user starts with only a password. There is no second factor until you add one.
- Nothing watches your spending. AWS charges for what you use, and nothing tells you when the total is higher than you expected.
The chapters that follow close these gaps in order. You will add MFA (multi-factor authentication) to the root user, avoid root access keys, create an admin identity for daily work, and set up a budget with alerts.
Check which identity you are using
Later in this tutorial you will use the CLI with an IAM identity. This command shows which account and identity your credentials belong to:
aws sts get-caller-identityThe output contains three fields. Account is the 12-digit account ID. UserId is a unique identifier for the identity. Arn is the identity's full name. If the Arn ends in :root, you are using the root user, which is what you want to avoid for daily work.
Common misunderstandings
- "An account is the same as a user." An account holds many users, roles, and resources. The root user is only one identity inside it.
- "The account ID is a secret." It is an identifier, not a credential. Treat it as low-sensitivity, but do not publish it without reason.
- "I can give an IAM administrator less power than root." An administrator can do almost everything, but a small set of tasks still needs the root user. A later chapter lists them.
Exercise
Name the two boundaries an AWS account provides, and say why the root user is riskier than an IAM administrator.
Show answer
An account is a security boundary (outside identities have no access unless granted) and a billing boundary (all usage is charged to the account's payment method). The root user is riskier because its permissions are unrestricted and cannot be limited by IAM policies, and it is protected by only a password until you add MFA. An IAM administrator's access is granted by policies, so it can be scoped and revoked.