AWS Builder Center

# Who Patches What? The AWS Shared Responsibility Model in Practice

Moving to the cloud does not mean handing all of your security to someone else. AWS uses a simple rule to split the work: AWS is responsible for security of the cloud, and you are responsible for security in the cloud. The idea is easy to say but easy to get wrong, because the line moves depending on which service you use. This article walks through three common services, Amazon EC2, Amazon RDS, and AWS Lambda, and shows what stays on your side of the line in each one.



The Two Halves of the Model

What AWS handles

AWS secures the physical and foundational layers: data centers, hardware, networking equipment, and the virtualization layer that isolates customers from each other. You never patch a hypervisor or replace a failed disk in a server rack. AWS also runs the managed parts of each service, and the more managed a service is, the more AWS takes on.

What you always handle

Some things never move to AWS, no matter which service you choose:
  • Identity and access: who can do what, through IAM users, roles, and policies.
  • Your data: how it is classified, whether it is encrypted, and who can read it.
  • Configuration: a secure service can still be configured insecurely, for example a database open to the internet.

EC2: You Own the Operating System

With EC2 you rent a virtual machine, so you get a lot of control and a lot of responsibility. AWS manages the host and hypervisor. Everything from the guest operating system upward is yours.
In practice: a team launches a Linux instance for an internal tool and forgets about it. Six months later it is running an unpatched OS with a known vulnerability, and its security group allows SSH from anywhere. On EC2 you are responsible for OS patches, installed software, firewall rules (security groups), disk encryption choices, and backups. Tools like AWS Systems Manager Patch Manager can automate patching, but you still have to turn them on and configure them.

RDS: AWS Runs the Database Engine, You Run the Access

Amazon RDS is a managed database service. AWS takes care of provisioning, OS and database engine patching, and automated backups. You pick the maintenance window, but you do not log in to the server to apply updates.
In practice: a developer creates a PostgreSQL database on RDS and assumes "managed" means "secure by default." But the customer still decides whether the instance is publicly accessible, which security groups can reach it, whether storage encryption is enabled, how long backups are kept, and who has database credentials. A common mistake is leaving a database publicly accessible with a weak master password. RDS will run perfectly; it will just run perfectly for an attacker too.

Lambda: AWS Runs the Servers, You Own the Code

With Lambda there is no server for you to manage. AWS handles the infrastructure, the operating system, and, by default, updates to the managed language runtime.
In practice: your responsibility shrinks to the function code, its dependencies, its configuration, and its IAM execution role. If your function uses an outdated library with a vulnerability, that is on you. If its role has  "Action": "*"  permissions "just to make it work," that is also on you. Over-permissive roles are one of the most common real issues in serverless applications. You are also responsible for moving off runtimes that reach end of support.

Trade-offs and Limitations

The model is clear in principle but messy in real projects:
  • Managed is not the same as secure. Moving up the stack removes patching work, not configuration or access risks.
  • Control and responsibility go together. EC2 gives you full flexibility but more work. Lambda removes work but also limits what you can customize at the OS level.
  • The line varies by service. Every AWS service has its own split, so teams need to check the security section of each service's documentation instead of assuming.
  • Mistakes are usually on the customer side. Most cloud security incidents come from misconfiguration and weak access control, not from failures in the provider's infrastructure.

Summary

Area
EC2
RDS
Lambda
Physical infrastructure and hypervisor
AWS
AWS
AWS
Operating system patching
Customer
AWS
AWS
Database engine / runtime patching
Customer
AWS (in your maintenance window)
AWS (managed runtimes, by default)
Application code and dependencies
Customer
Customer (queries, schema)
Customer
Network access (security groups, public access)
Customer
Customer
Customer (VPC settings, function URLs)
IAM permissions and credentials
Customer
Customer
Customer
Data encryption choices
Customer
Customer
Customer
Backups
Customer
Shared (AWS automates, you set retention)
Customer (data stored elsewhere)
The main lesson: the more managed the service, the less infrastructure you handle, but identity, data, and configuration always stay with you.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article