← Selected work

HIPAA-aligned AWS deployment pipeline

A reference implementation of the deployment pattern I use for AWS workloads that handle regulated health data, written to be read as much as run.

The problem

Workloads that handle regulated health data need more than a pipeline that succeeds. Access, encryption, rollback, and audit have to be designed in. Running Terraform also does not, by itself, make any system HIPAA compliant.

How I thought

I stripped the architecture down to the parts that carry the compliance argument, and wrote it so it can be read as much as run. The application, the data model, and the organisational safeguards sit outside this repository on purpose. I also wrote down what this work deliberately does not cover.

What I built

Infrastructure defined entirely in Terraform, across seven modules: network, data, compute, IAM, SSM, CodeDeploy, and audit. Releases go out through CodeDeploy blue/green, with automatic rollback. Hosts are reached only through Systems Manager Session Manager: no SSH, no bastion, no open port 22. Data is encrypted at rest with customer-managed KMS keys and in transit with enforced TLS. IAM roles are scoped to the resources they touch. CloudTrail and AWS Config watch the controls and keep re-testing them.

How I solved it

A blue/green deploy provisions a replacement fleet instead of changing running hosts, so a rollback is a traffic shift, not a second deploy under pressure. Rollback fires on deployment failure and on CloudWatch alarms for unhealthy hosts and 5xx rates. A ValidateService hook health-checks the new fleet before any production traffic moves. Artifacts live in an encrypted, versioned S3 bucket, so what is running has an exact answer. Every IAM policy has a comment explaining why it is scoped that way, including protections against confused-deputy and privilege-escalation paths. The repository maps technical HIPAA safeguards to resources, and is explicit that this is a reference architecture, not a certification.