Sub topic 2
The shared responsibility model and architectural decisions
This chapter assumes you know core AWS services such as EC2, S3, IAM and VPC, and that you have seen a typical multi-tier application deployed. It explains who is responsible for what in AWS, and how that split shapes the choices you make in a Well-Architected review.
The working model
The shared responsibility model divides security and operational duties between AWS and you.
- AWS is responsible for the security of the cloud. This covers the physical data centers, the hardware, the network, and the software that runs the managed services.
- You are responsible for security in the cloud. This covers your data, your identity and access settings, your operating systems and applications, and how you configure each service.
The line moves depending on which service you pick. The more AWS manages for you, the less you have to operate.
| Service type | Example | AWS manages | You manage |
|---|---|---|---|
| Infrastructure | Amazon EC2 | Hardware, hypervisor, facilities | Guest OS, patching, firewall rules, application, data |
| Container or managed platform | Amazon RDS | Host OS, database engine patching, backups tooling | Data, access, parameter settings, network placement |
| Abstracted service | Amazon S3 | Infrastructure and platform | Data, bucket policies, encryption choices, IAM |
Why it matters for architecture
Responsibility is a design input. Each time you choose a service, you also choose which tasks land on your team. Two examples:
- Running a database on EC2 means you own OS patches, database upgrades, backups and failover. Choosing Amazon RDS moves much of that to AWS, and your remaining work is access control, encryption settings and capacity choices.
- Choosing a Multi-AZ deployment is your decision. AWS provides the Availability Zones, but it does not make your workload resilient unless you configure it that way.
This links directly to two pillars. For Security, you must decide how to protect data and control access, because those duties stay with you. For Reliability, AWS provides resilient infrastructure, and you must design the workload to use it, for example by spreading resources across Availability Zones.
A worked example
Suppose the orders API stores invoices in S3. AWS keeps the storage durable and the facilities protected. You still decide who can read the objects and whether connections must be encrypted. This bucket policy is your side of the model. It denies any request that does not use TLS.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyInsecureTransport",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::example-bucket",
"arn:aws:s3:::example-bucket/*"
],
"Condition": {
"Bool": { "aws:SecureTransport": "false" }
}
}
]
}Common errors
- Assuming a managed service removes all your duties. You still own data classification, access policies and configuration.
- Treating the model as a checklist for security only. It also affects patching, backups, failover and monitoring.
- Not revisiting the split when you change services. Moving from EC2 to a managed service changes your tasks, so update your runbooks and review answers.
- Forgetting that responsibility differs per service. Read the documentation for each service you use.
Using it in a review
When you answer Well-Architected questions, first ask which party owns the task. If AWS owns it, you rely on it and check available compliance reports. If you own it, you need a documented practice or a mechanism that enforces it.
Exercise
Your team moves a self-managed PostgreSQL database from EC2 to Amazon RDS. Name two responsibilities that move to AWS and two that stay with you.
Show answer
Moving to AWS: operating system patching of the host and database engine patching (plus the underlying hardware and facilities). Staying with you: controlling who can access the database (IAM, security groups, database users) and protecting the data, for example through encryption settings and choosing a Multi-AZ configuration for resilience.