Ship Your AWS Stack Already Wired for SOC 2 and HIPAA Controls
Build the controls into your AWS deployment before launch to skip months of audit remediation.

Sponsored by Porter
- Written by
- Ship It Yourself Editors
- Published
- November 13, 2026
- Reading time
- 9 min read
- Sources cited
- 3 sources ↓
What this covers
- Why compliance cannot be retrofitted onto an AWS stack that is already in production
- The legal prerequisite: signing the AWS BAA before any PHI touches infrastructure
- Multi-account architecture as the foundation all other controls depend on
- Service Control Policies as the guardrails that prevent misconfiguration from reaching production
Shipping an AWS stack ready for SOC 2 and HIPAA means building controls into the deployment. Account structure, access rules, encryption, logging, and network boundaries determine both how the system is protected and what evidence it produces. Setting them before application code ships lets a small team avoid months of remediation without turning audit preparation into a second job.
Why compliance cannot be retrofitted onto an AWS stack that is already in production
A founder receives a security questionnaire from the first enterprise prospect. It asks who can access production, how changes get approved, and how customer data is protected. AWS’s certifications do not answer those questions. AWS holds a SOC 2 Type II attestation and maintains HIPAA-eligible services, but the shared responsibility model leaves workloads, data, access, and operating processes with the startup.
That gap costs more to close once customers are waiting. SOC 2 Type II requires a minimum three-month observation period, and the full timeline can stretch to six months or more. Emergency IAM repairs, encryption backfills, and manual evidence collection pull engineers off product work without recovering the missing history. A live stack can be repaired, but its past cannot be rebuilt.
The legal prerequisite: signing the AWS BAA before any PHI touches infrastructure
Before configuring safeguards for Protected Health Information, settle the legal relationship. A startup processing, storing, or transmitting PHI on behalf of a covered entity or another business associate is a Business Associate. AWS becomes a subcontractor Business Associate. Sign the AWS Business Associate Addendum before PHI enters the environment.
Next, verify eligibility for every service that will handle PHI. Common eligible services include Amazon EC2, S3, RDS, Lambda, EKS, ECS, and AWS Backup, but eligibility cannot be assumed across AWS. The agreement is only the legal starting point. It does not make the architecture compliant or replace the technical safeguards that follow.
Multi-account architecture as the foundation all other controls depend on
Account structure comes first because the later controls depend on it. Putting everything in one account puts production, experiments, and audit evidence under the same administrators’ control. Separation gives each account a clear job. The recommended starting structure has five accounts, each with a different relationship to regulated data.
The Security account holds centralized logs, Security Hub aggregation, and GuardDuty aggregation, giving auditors a place to examine evidence. Production runs regulated workloads under the strictest policies. Staging lets engineers test before production without using production data, while Development gives them room to work under looser rules that are still enforced. Sandbox supports experiments with spend limits and no path to production data.
AWS Organizations turns those separate accounts into a governed system. It lets the organization set restrictions that account administrators cannot simply override. Apply consistent tags, including Environment, Owner, Data-Class, and Compliance-Level, so ownership and data exposure remain traceable across accounts. Account separation then becomes evidence of segmentation.
Service Control Policies as the guardrails that prevent misconfiguration from reaching production
Service Control Policies, or SCPs, make the account structure enforceable. They need Organizations to work, but Organizations on its own keeps accounts separate without putting those guardrails in place. An applicable SCP prevents engineers, including those with account-level administrator access, from removing a control.
The starting restrictions should block disabling CloudTrail, creating public S3 buckets, creating IAM users with long-lived access keys, and deploying outside approved regions. Each restriction closes a specific route to an audit failure. CloudTrail remains protected, storage cannot be exposed through the prohibited configuration, and region limits support data residency. These policies also give auditors preventive evidence.
Apply the tightest rules to Production and Security, with more latitude in Development and Sandbox. Experimentation can remain fast without giving experimental workloads a route around production controls.
IAM configuration as the primary audit surface for both SOC 2 and HIPAA
An auditor needs answers about access. Who had production access on a given date? How were credentials managed, and was MFA enforced? Those questions come straight from SOC 2’s access control criteria and HIPAA’s Access Control safeguard. The configuration must make the answers demonstrable.
Enforce MFA for the root account, administrators, and anyone with elevated privileges. Encouraging it is not the same control. IAM Identity Center centralizes access management, and connecting it to Okta, Azure AD, or Google Workspace gives auditors one place to examine provisioning and de-provisioning. Replace long-lived access keys with IAM roles and STS short-term credentials rather than leaving static credentials in developer workflows or CI pipelines.
Least privilege also needs to be specific. Policies should identify the service, action, and resource required instead of defaulting to broad permissions such as s3:* or *:*. Permission Boundaries add another limit beneath SCPs, constraining what developers and automation tools can do even when they have elevated access.
Encryption at rest and in transit as controls that must be on before data arrives
Encryption belongs in provisioning because the first write changes the problem. Enabling encryption on a production RDS instance after launch introduces downtime and migration risk that do not exist when encryption is enabled at creation. EBS volumes should likewise be encrypted when created. Waiting turns a configuration decision into work on live data.
Use AWS KMS for the at-rest controls. Configure S3 buckets with SSE-KMS rather than SSE-S3 so that key usage logs are available as evidence, and enable encryption when launching RDS and Aurora. DynamoDB, EFS, FSx, and Redshift also need explicit KMS configuration in this baseline. Customer-managed keys give the organization control over rotation policies and provide a record of key use.
Storage encryption is only half the requirement. Use TLS 1.2+ for data in transit so protection does not stop when data leaves storage. Together, these controls address the data protection requirements behind HIPAA’s Technical Safeguards and SOC 2’s Confidentiality criteria.
CloudTrail and audit logging as the evidence collection system
Access restrictions and encryption need a record that auditors can examine. CloudTrail supplies the API activity history behind that evidence, but its setup determines how useful the record will be. Turn on a multi-region trail before workloads start running. A single-region trail misses activity in regions it does not cover.
Send the logs to S3 with integrity validation enabled so their integrity can be checked. Bring them together in the Security account instead of keeping evidence in separate stores that each workload account’s administrators control. Turn on CloudTrail Insights to spot unusual API activity. These decisions make logging a shared evidence system.
The earlier SCPs protect this evidence layer. A restriction against disabling CloudTrail stops an account administrator from switching off the trail that records activity. Integrity validation addresses tampering concerns, while multi-region coverage addresses geographic gaps. Neither replaces the other, and both belong in the initial configuration.
AWS Security Hub and GuardDuty as continuous audit evidence
An auditor needs more than a clean dashboard on inspection day. Security Hub aggregates findings from GuardDuty, Inspector, Macie, and AWS Config, while remediation history shows how findings were handled. Enable the AWS Foundational Security Best Practices standard for automated control checks. The history of their status helps show that the controls worked throughout the SOC 2 observation period.
GuardDuty adds continuous threat detection using CloudTrail, DNS logs, and VPC Flow Logs, with findings routed into the same evidence record. Macie finds sensitive data in S3, including PHI, and flags gaps in how it is protected. AWS Config records resource configuration changes over time. Config Rules then detect drift from compliant baselines, giving auditors a timeline.
For a small team, that history is the payoff. When set up correctly from the start, the tools keep gathering evidence without a dedicated security team to collect it. Findings still need attention, and remediation history is part of what makes the evidence useful.
Infrastructure as Code as the change management control SOC 2 requires
SOC 2 change management asks if changes were reviewed before they reached production. A manual console change does not provide that approval record. Infrastructure as Code puts infrastructure changes into the same review process many startups already use for application code. The pull request becomes evidence.
Make infrastructure changes through Terraform or CloudFormation in version control. Each commit provides a reviewable change, and pull request approvals document the review process supporting SOC 2 CC8. AWS Config drift detection identifies when the live environment diverges from its code-defined state. That finding also shows that the change control is being monitored.
Reproducible infrastructure supports recovery as well as review. Rebuilding an environment from code contributes to HIPAA backup and recovery requirements and SOC 2 Availability controls, though recovery still needs its supporting plans and backups. Terraform also documents the infrastructure in a provider-agnostic form, reducing migration risk. That portability is useful, but the immediate audit benefit is the change history.
Network boundaries as VPC decisions that segment PHI
Even with separate accounts, a workload still needs boundaries within its network. A flat network that makes PHI systems reachable from development instances or public subnets expands the reach of an incident. Set the boundaries when creating the VPC. The design should distinguish public entry points, application compute, and regulated data.
Public subnets should contain load balancers only. Private application subnets hold compute that has no direct internet access, while private data subnets hold databases and storage that applications can reach only as defined security group rules allow. PHI systems must not be reachable from the public internet. Developers access production through bastion hosts with MFA enforced at the IAM level.
Security groups and Network ACLs apply least privilege to network access. Inbound rules should allow only the ports and source IP ranges needed, and only public-facing load balancers should have broad public access. Enable VPC Flow Logs so network activity feeds the GuardDuty evidence record.
Mapping SOC 2 Trust Service Criteria to the AWS controls just described
Security is required among SOC 2’s five Trust Service Criteria. Availability and Confidentiality are commonly required by enterprise buyers, while Processing Integrity and Privacy are rarely included in a first audit. Scope determines which additional evidence is needed.
Security connects IAM least privilege and MFA with SCPs, protected CloudTrail logging, GuardDuty findings, Security Hub history, and incident response procedures. Availability connects multi-AZ deployments and AWS Backup with recovery documentation derived from IaC and incident response plans containing documented RTO/RPO. Confidentiality connects KMS encryption and TLS 1.2+ with Macie classification and access restrictions.
Processing Integrity, when in scope, connects pipeline validation through AWS Config rules with CloudFormation drift detection. Privacy connects data lifecycle policies, Cognito identity management, and documented data minimization practices. These categories still require more than service configuration. Their supporting procedures and records are part of the audit.
Compliance automation tools that connect to AWS and collect evidence continuously
Once the AWS controls work, compliance automation can make it easier to gather their evidence. That sequence is not optional. A platform reading a misconfigured trail or an empty findings history cannot manufacture proof that controls operated. Its role is to collect and organize what the environment produces.
Vanta connects to AWS to collect evidence for hundreds of controls and integrates with Okta, GitHub, Jira, and MDM. Its readiness dashboard and auditor portal support the handoff from engineering to audit. For teams that want to avoid paying an ongoing platform cost, Security Hub reporting and AWS Audit Manager can create evidence packages directly. The tradeoff is more internal work to organize and present them.
Without a dedicated DevOps engineer, a startup can spend weeks configuring accounts, SCPs, logging, encryption, networks, and infrastructure review workflows. A PaaS layer running in the customer’s own AWS account can automate that foundational setup without replacing the startup’s compliance obligations. For AI startups, establishing it before the first model deployment keeps GPU workloads, inference endpoints, and rapid releases from outrunning the controls. The stack starts with evidence collection built in, rather than waiting for an enterprise questionnaire to force the issue.
This article is sponsored by Porter.
Methodology & sources
- SOC 2 Compliance on AWS: Step-by-Step Guide for Startups
Provided the SOC 2 Type II observation period and timeline for startups.
- AWS Cloud Security Checklist for HIPAA, SOC2 & PCI DSS
Supplied checklist-style baseline controls such as encryption, logging, IAM, and network segmentation that the article's sections cover.
- AWS Security & Compliance: SOC 2, HIPAA & GDPR on the Cloud
Informed the mapping of AWS services such as KMS, CloudTrail, Security Hub, and GuardDuty to SOC 2 and HIPAA requirements.