Skip to content

Reference architecture

SOC 2 Type 2 readiness architecture on AWS

A Terraform-managed AWS baseline that collects control evidence automatically. We prepare the evidence; the audit opinion is issued by your independent CPA firm.

Design constraints

What the design has to hold to

Targets for the scenario this reference is sized for. A real engagement starts by replacing them with your own numbers.

  • 01Automated evidence collection mapped to the Trust Services Criteria
  • 02No long-lived IAM access keys for people; short-lived SSO sessions only
  • 03Encryption at rest (KMS) and in transit (TLS 1.2 or later) on every data store and endpoint
  • 04Automated vulnerability scanning of every container image and code repository

Component topology

System components and technologies

Subsystems with separate responsibilities, clear contracts between them and storage that scales on its own. The stack named for each is typical, not mandatory.

Stack topology

SOC 2 Type 2 readiness architecture on AWS

Illustrative reference architecture

  1. 01

    Identity & single sign-on

    Okta or Google Workspace SSO with hardware-key MFA and short-lived IAM roles

    AWS IAM Identity Center

  2. 02

    Continuous compliance monitoring

    Misconfiguration detection and evidence reporting

    AWS Config + Vanta / Drata

  3. 03

    Vulnerability & threat detection

    Runtime anomaly detection and container image scanning

    Amazon GuardDuty + Amazon Inspector

  4. 04

    Centralized audit trail

    Write-once audit logging aggregated across accounts

    AWS CloudTrail + S3 Object Lock

Subsystem 01

Identity & single sign-on

Okta or Google Workspace SSO with hardware-key MFA and short-lived IAM roles

Typical stack

AWS IAM Identity Center

Subsystem 02

Continuous compliance monitoring

Misconfiguration detection and evidence reporting

Typical stack

AWS Config + Vanta / Drata

Subsystem 03

Vulnerability & threat detection

Runtime anomaly detection and container image scanning

Typical stack

Amazon GuardDuty + Amazon Inspector

Subsystem 04

Centralized audit trail

Write-once audit logging aggregated across accounts

Typical stack

AWS CloudTrail + S3 Object Lock

Data lifecycle

End-to-end data flow

  1. An engineer requests AWS access through Okta SSO and receives a one-hour IAM session.

  2. CloudTrail logs every API call and infrastructure change to an S3 bucket in an isolated security account.

  3. AWS Config evaluates resource changes against CIS AWS Foundations Benchmark rules.

  4. A compliance platform (Vanta or Drata) gathers evidence from AWS APIs continuously.

  5. GuardDuty findings trigger PagerDuty alerts and automated remediation Lambdas.

Reliability and resilience

Failure modes and how each is contained

Failure mode 01

Public S3 buckets

Mitigation

Enable S3 Block Public Access at the organization root, backed by restrictive SCPs.

Failure mode 02

Unencrypted cloud resources

Mitigation

AWS Config auto-remediation rules quarantine unencrypted EBS volumes and databases as soon as they appear.

Failure mode 03

Stale, inactive user accounts

Mitigation

Quarterly access reviews generated from IdP and AWS SSO logs by a scheduled GitHub Actions workflow.

Questions

What teams ask about this design

It depends on how many controls you already run. The infrastructure baseline can usually be codified in weeks; the Type 2 observation period is agreed with your auditor and commonly runs 3 to 12 months. We prepare the evidence; the audit opinion is issued by your independent CPA firm.

Type 1 evaluates whether your controls are designed properly on a specific date. Type 2 evaluates whether they operated effectively over an observation period, typically 3 to 12 months.

Planning a system like this?

Send us your requirements, expected load and budget. We'll reply within one business day with an honest read on the design, and on whether we're the right team to build it.