Sub topic 13
Building a responsibility matrix for your workload
A responsibility matrix is a table that lists every security control a workload needs and names one owner for each. This chapter assumes you know the core AWS services (EC2, S3, IAM), Regions and Availability Zones, and basic security ideas such as encryption and least privilege. You should also be able to read a short AWS CLI command. It uses what the earlier chapters covered: the two sides of the model, the three service categories, the inherited, shared, and customer-specific control types, and the verification tools.
Why a matrix is needed
The shared responsibility model is a principle. It says AWS secures the cloud and you secure what you put in it. It does not tell you who patches the guest operating system on your instance, who rotates a database password, or who proves to an auditor that logs are retained. A matrix turns the principle into assignments for one specific workload.
A good matrix gives you three things:
- Clear ownership. Every control has one accountable owner, so nothing falls into the gap between "AWS does that" and "my team does that".
- A review checklist. You can walk through it when you add a service, change an architecture, or prepare for an audit.
- Audit evidence. It records how you know each control works, and it points to the artifact that proves it.
What a matrix row contains
Keep rows small and specific. A row that says "encryption" is too vague to assign. A row that says "encryption at rest for the orders database" can be assigned and tested.
| Column | Purpose | Example |
|---|---|---|
| Control | The single thing that must be true | Snapshots of the orders database are encrypted |
| Category | Inherited, shared, or customer-specific | Shared |
| AWS responsibility | What AWS provides | Encryption capability and key infrastructure |
| Customer responsibility | What you must configure or do | Enable encryption and choose the key |
| Owner | One named role or team | Platform team |
| Verification | How you check it | AWS Config rule, reviewed weekly |
| Evidence | Where the proof lives | Config compliance report, AWS Artifact report |
The Category column comes from the earlier chapter on control types. An inherited control is one you rely on fully because AWS operates it, such as physical security of data centers. A shared control applies to both sides, with different duties on each. A customer-specific control depends entirely on how you use the service.
A procedure for building the matrix
Follow the same steps for every workload.
- List the components. Write down every AWS service the workload uses, plus any code, data stores, and external connections.
- Classify each service. Mark it as infrastructure (such as EC2), container (such as RDS), or abstracted (such as S3 or DynamoDB). This tells you how much of the stack is yours.
- List the control domains. Use the domains from this tutorial: identity and access, data protection, network and configuration, logging and monitoring, and compliance.
- Write one row per control per component. Split rows when the owner or the verification differs.
- Assign an owner. Pick a role that exists on your team, not "everyone" or "security".
- Choose a verification method. Prefer an automated check over a manual review.
- Link the evidence. Record where an auditor can find proof, including AWS-side evidence from AWS Artifact.
Worked example: a small web application
Suppose a workload has a web tier on EC2, a PostgreSQL database on RDS, and user uploads in S3. Start by classifying the services.
| Component | Category | What this means for you |
|---|---|---|
| EC2 web tier | Infrastructure | You manage the guest OS, patches, firewall rules, and application |
| RDS database | Container | AWS manages the database engine host and OS patching. You manage access, parameters, encryption choices, and data |
| S3 uploads | Abstracted | AWS manages the platform. You manage bucket policy, public access settings, encryption, and data |
Now write rows for each component. The matrix below is a short excerpt, not a complete list.
| Control | Category | AWS does | You do | Owner | Verification |
|---|---|---|---|---|---|
| Physical security of data centers | Inherited | Operates and secures facilities | Nothing, but cite the evidence | Compliance lead | AWS Artifact report |
| Hypervisor isolation between instances | Inherited | Operates the virtualization layer | Nothing | Compliance lead | AWS Artifact report |
| Guest OS patching on EC2 | Customer-specific | Supplies the images | Patch and update the OS | Platform team | Patch compliance report |
| RDS engine and host patching | Shared | Applies host and engine patches | Set the maintenance window and test the application | Database owner | RDS pending maintenance review |
| Security group rules | Customer-specific | Enforces the rules | Define the least open rules | Network owner | AWS Config rule |
| S3 public access | Customer-specific | Offers Block Public Access | Turn it on and set bucket policies | Data owner | AWS Config rule |
| EBS and RDS encryption | Shared | Provides encryption and key infrastructure | Enable it and manage keys | Platform team | AWS Config rule |
| IAM least privilege | Customer-specific | Provides the IAM service | Write and review policies | Identity owner | IAM Access Analyzer findings |
| Security awareness training | Shared | Trains AWS staff | Trains your staff | Security lead | Training records |
Notice that "Security awareness training" appears as shared. AWS trains its employees and you train yours. The same pattern holds for patch management: AWS patches the infrastructure, and you patch what you run on it.
Turning rows into checks
A row is only useful if you can confirm it. The commands below match three rows from the matrix. Each one checks or sets a customer-side control.
The S3 public access row uses all four Block Public Access settings on the bucket:
aws s3api put-public-access-block \
--bucket amzn-s3-demo-bucket \
--public-access-block-configuration \
BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=trueThe encryption row uses a Regional default so new EBS volumes are encrypted without anyone having to remember:
aws ec2 enable-ebs-encryption-by-default --region us-east-1
aws ec2 get-ebs-encryption-by-default --region us-east-1The verification column can then use AWS Config to list rules that report non-compliant resources:
aws configservice describe-compliance-by-config-rule \
--compliance-types NON_COMPLIANTThe EBS setting applies per Region. If the workload runs in several Regions, the matrix needs a row, or a note, for each one. Otherwise a second Region will quietly keep the old default.
Handling shared and ambiguous rows
Shared rows cause most matrix disputes, so write both halves out. For each shared control, fill in the "AWS does" column and the "You do" column separately, and give the owner of the customer half. Do not assign an owner to the AWS half. AWS owns it, and your evidence for it is an AWS Artifact report.
Some rows change as the architecture changes. Moving a database from self-managed PostgreSQL on EC2 to RDS shifts OS patching and engine installation to AWS. It does not move access control, data classification, or encryption choices. When you make a change like this, revisit every row for that component and update the category and the owner.
The table below shows how common duties move.
| Duty | Self-managed on EC2 | Amazon RDS | Abstracted service such as S3 |
|---|---|---|---|
| Physical and hypervisor security | AWS | AWS | AWS |
| Guest OS patching | You | AWS | AWS |
| Database engine patching | You | AWS | Not applicable |
| Network access rules | You | You | You (bucket policy and access settings) |
| Identity and permissions | You | You | You |
| Data classification and encryption choices | You | You | You |
Common mistakes in matrices
- Shared ownership. An owner of "the team" means no one acts. Name one role.
- Rows that are too broad. "Network security" cannot be verified. Split it into security groups, network ACLs, and flow logs.
- Assuming a category. Do not assume a service is abstracted because it feels managed. Check what the service documentation says you must configure.
- No evidence link. A control with an owner but no proof still fails an audit.
- A static document. A matrix written once at launch decays. Add a trigger to review it when a service is added, a Region is added, or an incident happens.
- Forgetting AWS-side evidence. For inherited controls, cite the AWS Artifact report and its date instead of leaving the cell empty.
Keeping the matrix current
Treat the matrix as part of the workload's lifecycle, not as a one-off document.
- Review it when you add or remove a service, because the category and duties may change.
- Review it when you add a Region, because settings such as EBS encryption by default apply per Region.
- Review it after an incident, and add rows for any control that was missing.
- Re-run the compliance checks on a schedule and record the results as evidence.
- Refresh the AWS Artifact reports at least as often as your audit cycle, so the AWS-side evidence has current dates.
Exercise
A team moves its reporting database from PostgreSQL installed on EC2 to Amazon RDS for PostgreSQL. Which matrix rows change owner or category, and which stay with the team?
Show answer
Rows for guest OS patching and database engine installation and patching move to AWS, because RDS is a container service where AWS manages the host and engine. The team keeps rows for IAM permissions, security group rules, encryption choices and key management, data classification, and application-level testing around maintenance windows. The team should update the category and the AWS-does column for the moved rows and keep the evidence link to the AWS Artifact report.
Exercise
Write two matrix rows for the S3 bucket that holds user uploads: one for public access and one for encryption. For each, give the category, the customer duty, an owner, and an automated verification method.
Show answer
Row 1: Control "Bucket is not publicly accessible", category customer-specific, customer duty "turn on all four Block Public Access settings and keep bucket policies restrictive", owner data owner, verification an AWS Config rule that flags buckets without public access blocking. Row 2: Control "Objects are encrypted at rest", category shared, AWS provides the encryption capability and key infrastructure, customer duty "choose the encryption setting and manage keys if using a customer managed key", owner platform team, verification an AWS Config rule that reports unencrypted buckets.