Sub topic 4
How responsibility shifts across infrastructure, container, and abstracted services
This chapter assumes you know the basics of EC2, S3, and IAM, understand Regions and Availability Zones, and can read a short AWS CLI command. The split between security of the cloud and security in the cloud is not the same for every service. It moves depending on how much of the stack AWS manages for you.
Three service categories
AWS groups its services by how much of the stack you manage.
- Infrastructure services give you virtual machines, block storage, and virtual networks. Amazon EC2, Amazon EBS, and Amazon VPC are examples. You manage the guest operating system and everything above it.
- Container services run on infrastructure that AWS manages, but you still control some of the platform. Amazon RDS, Amazon EMR, and AWS Elastic Beanstalk are examples. AWS manages the operating system and the platform. You manage the data, the access to it, and the configuration of the service.
- Abstracted services hide the platform almost entirely. Amazon S3, Amazon DynamoDB, and Amazon SQS are examples. You interact through an API. AWS manages the operating system, the platform, and server-side encryption mechanics. You still manage your data, your access policies, and the choices the service exposes.
The customer's duties never drop to zero in any category. Your data, your identities, and your configuration choices are always yours.
What moves and what stays
The table below compares who handles common tasks.
| Task | EC2 (infrastructure) | RDS (container) | S3 (abstracted) |
|---|---|---|---|
| Physical hardware | AWS | AWS | AWS |
| Hypervisor | AWS | AWS | AWS |
| Guest operating system patching | You | AWS | AWS |
| Database engine patching | You | AWS, on your maintenance window | AWS |
| Network access rules | You (security groups) | You (security groups) | You (bucket policy, Block Public Access) |
| Data classification and encryption choices | You | You | You |
| IAM permissions | You | You | You |
Some entries are less clear-cut than they look. RDS patching is performed by AWS, but you choose the maintenance window and decide when to upgrade major engine versions. Treat that as a shared duty.
Applying the category to a decision
Use the category to ask the right question about any service you adopt.
- Find the service's category in the AWS documentation for that service. Most service guides have a security chapter that states what you must configure.
- List the layers you can see. If you can log in to the operating system, you must patch it.
- List the settings the service exposes, such as encryption, public access, and logging. Each one is a decision you own.
For example, S3 gives you no operating system to patch. It does give you a public access setting, and that setting is yours. This command turns on all four Block Public Access settings for one bucket:
aws s3api put-public-access-block \
--bucket amzn-s3-demo-bucket \
--public-access-block-configuration \
BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=trueAWS operates S3, but whether a given bucket is public is your configuration choice.
Common errors
- Assuming a managed service is secure by default. AWS secures the platform. The settings you choose still determine your exposure.
- Patching RDS instances by logging in. You cannot reach the operating system. Use maintenance windows and engine version settings.
- Treating container and abstracted services the same. RDS needs security groups in a VPC. S3 needs bucket policies and Block Public Access.
Exercise
A team moves a self-managed MySQL database on EC2 to Amazon RDS for MySQL. Name one duty that moves to AWS and two duties that stay with the team.
Show answer
Moving to AWS: operating system patching, and database engine patching (the team still picks the maintenance window). Staying with the team: controlling who can reach the database (security groups and IAM), and deciding how the data is classified and encrypted. Managing database users and permissions also stays with the team.