EduFlow
AWS Cloud Foundations
0%

Section 1 · Cloud Fundamentals

The Shared Responsibility Model and a Safe Account

18 min3 min readChoose wisely

Lesson at a glance

Say which security tasks belong to AWS and which to you for EC2, RDS and Lambda, then lock down a new account with root MFA, an everyday admin and a budget alert.

  1. 1Security of the cloud, security in the cloud
  2. 2Lock down the account before you build

No video here — just the real thing: a written lesson, runnable examples, a quiz and practice.

Lantern’s old host had a short answer to “who keeps this secure?”: the maintainers did everything above the power socket. AWS splits the job. Knowing exactly where the split falls tells you what you can stop worrying about, and what you can never hand off.

Security of the cloud, security in the cloud

AWS calls this the shared responsibility model. AWS is responsible for security of the cloud: data centres, guards, hardware, the global network, the virtualisation layer, and the software that runs each managed service. You are responsible for security in the cloud: your data, who can access it, how you configure each service, and the code you deploy.

The line is not fixed. It moves with how managed the service is.

Three columns. For EC2 you own data, access, app code, runtime and guest OS. For RDS you own data, access and schema while AWS runs the engine and OS. For Lambda you own data, access and code including dependencies while AWS runs the runtime and OS. AWS owns hardware and facilities in all three. Amazon EC2 Amazon RDS AWS Lambda Data + access App code Runtime Guest OS Hardware + sites Data + access Schema + queries DB engine OS Hardware + sites Data + access Code + deps Runtime OS Hardware + sites You AWS
Where the line falls for EC2, RDS and Lambda

On EC2 you patch the operating system, exactly as on Lantern’s old server. On RDS, AWS patches the database engine and OS during a maintenance window you choose, but your schema, users and network access are yours. On Lambda, AWS keeps the runtime and OS patched, and you own the code and every package you bundle with it. The top row never moves: your data and who can reach it are always your job.

Lock down the account before you build

A new account is the most dangerous moment, because the only identity is the all-powerful root user. Here is the setup Lantern uses, in order.

1. Choose the right account plan

At sign-up, AWS (as of 2026) offers a Free plan and a Paid plan. Both start with promotional credits, and both include monthly free usage for over thirty services. The Free plan guarantees no charges, but limits you to selected services and closes the account after six months or when the credits run out, unless you upgrade. The Paid plan unlocks everything and bills you for usage beyond the credits. Use the Free plan to learn; Lantern’s production account is on the Paid plan, which is exactly why the budget in step 4 matters.

2. Protect the root user

The root user is the email address you signed up with. It can change billing details and close the account, and IAM policies cannot restrict it. AWS requires MFA on root users; register a passkey or security key if you can, because they resist phishing in a way that six-digit codes do not. Never create access keys for root. After setup, you sign in as root only for the handful of root-only tasks, such as turning on IAM user and role access to billing information in the account settings, so that your admin identity can see costs.

3. Create an everyday admin

Daily work happens as a separate identity. For a single standalone account like Lantern’s first one, that is an IAM user with console access, a strong password, its own MFA, and membership of an Admins group that has the AdministratorAccess managed policy. Section two explains every one of those words, and how teams with several accounts use IAM Identity Center instead.

4. Set a budget before anything else

In AWS Budgets, create a monthly cost budget at an amount that would worry you, say 20 USD, with email alerts at 80% of actual spend and at 100% of forecasted spend. The forecast alert matters: it fires early in the month when the trend says you will overshoot. Under the hood a budget is a small JSON document:

budget.json
{
  "BudgetName": "lantern-monthly",
  "BudgetLimit": { "Amount": "20", "Unit": "USD" },
  "TimeUnit": "MONTHLY",
  "BudgetType": "COST"
}

5. Fill in the alternate contacts

Under account settings, add a security contact and a billing contact. When AWS detects something suspicious, such as leaked credentials, it emails them. On a one-person project those emails easily land in a forgotten inbox.

The account is safe to use. Next you will drive it from the terminal with the AWS CLI v2 and prove which identity you are using.

Key takeaways

  • AWS is responsible for security of the cloud (buildings, hardware, network, service software); you are responsible for security in the cloud (data, access, configuration, code).
  • The more managed the service, the more of the stack AWS patches, but your data, permissions and code are always yours.
  • The root user can do anything, including closing the account, so give it a passkey or security key, never create access keys for it, and use it only for root-only tasks.
  • Do daily work as a separate admin identity with its own MFA, not as root.
  • An AWS Budgets alert warns you before a bill surprises you, but it does not stop spending on its own.

Further reading

Check your understanding

3 questions

Question 1 of 3

Lantern’s API runs on AWS Lambda. A security advisory lands for an npm package bundled in the function. Who patches it?

Question 2 of 3

Which task should you do while signed in as the root user?

Question 3 of 3

Lantern has a monthly AWS Budgets cost budget of 20 USD with an email alert at 100%. A forgotten instance pushes spend to 35 USD. What happens?

Practice

Choose wisely

Whose job is it?

During the migration Lantern runs a worker on Amazon EC2, the events database on Amazon RDS, the RSVP API on AWS Lambda, and posters in Amazon S3. Select every task that is Lantern’s responsibility under the shared responsibility model.

Whose job is it?