HIPAA Technical Safeguards mapped to specific AWS services and configurations that satisfy each requirement.
HIPAA does not prescribe specific technologies. It defines categories of safeguards and requires covered entities and business associates to implement reasonable and appropriate measures within each category. On AWS, this translates to a specific set of services and configuration choices that map directly to each HIPAA requirement.
This article covers the Technical Safeguards section of the HIPAA Security Rule (45 CFR § 164.312) and maps each standard to the AWS services and configurations that address it. It does not cover the Administrative or Physical Safeguard sections, which are largely organizational policy matters rather than cloud architecture decisions.
Note: This article describes technical controls, not legal advice. HIPAA compliance requires a Business Associate Agreement (BAA) with AWS, organizational policy documentation, risk assessments, workforce training, and audit procedures in addition to technical controls. Consult qualified legal and compliance counsel for your specific situation.
Before any PHI is stored or processed on AWS, you must execute a Business Associate Agreement with AWS. AWS provides a standard BAA that covers a defined set of HIPAA-eligible services. Only services listed in the BAA may be used to store, process, or transmit PHI. The current list includes EC2, RDS, S3, Lambda, ECS, EKS, CloudTrail, CloudWatch, KMS, and many others, but not every AWS service.
Review the AWS HIPAA Eligible Services Reference before architecting any PHI-handling system. Using a non-eligible service to process PHI is a compliance gap regardless of how well you have configured the eligible services around it.
The Access Control standard requires unique user identification, emergency access procedures, automatic logoff, and encryption/decryption.
Every person and system accessing PHI must have a unique identity. On AWS, this maps to:
HIPAA requires limiting PHI access to the minimum necessary for each job function. On AWS, enforce this through IAM policies scoped to specific S3 bucket prefixes, specific RDS databases, or specific DynamoDB tables that contain PHI. Avoid wildcard resource ARNs (arn:aws:s3:::*) in policies governing PHI access.
For web applications handling PHI, implement session timeouts at the application layer. For AWS Console access, enforce IAM Identity Center session duration limits. For IAM role sessions, set appropriate MaxSessionDuration values (default is 1 hour for assumed roles).
The Audit Controls standard requires hardware, software, and procedural mechanisms to record and examine activity in systems containing PHI.
CloudTrail must be enabled in all Regions and configured to log to an S3 bucket with:
Enable CloudTrail data events for S3 buckets containing PHI. Management events alone do not capture object-level access (GetObject, PutObject, DeleteObject). Data events are required to satisfy audit logging requirements for PHI stored in S3.
For relational databases containing PHI, enable database-level audit logging:
pgaudit extension. Export logs to CloudWatch Logs.Enable VPC Flow Logs on all VPCs containing PHI-handling resources. Flow logs capture network-layer access metadata (source/destination IP, port, protocol, bytes transferred) and are required for network-level audit trails. Publish to CloudWatch Logs or S3 with appropriate retention.
HIPAA requires retaining documentation related to the Security Rule for 6 years. Set CloudWatch Logs retention policies to at least 6 years for logs containing PHI-related audit records. For S3-stored logs, use S3 Lifecycle policies to transition to S3 Glacier after 90 days to reduce storage costs while maintaining retention.
The Integrity standard requires mechanisms to authenticate PHI and protect it from unauthorized alteration or destruction.
The Transmission Security standard requires encryption of PHI transmitted over electronic communications networks.
ELBSecurityPolicy-TLS13-1-2-2021-06 policy on ALBs to enable TLS 1.3 while maintaining 1.2 compatibility.aws:SecureTransport: false deny statements to block unencrypted S3 API calls.rds.force_ssl parameter to 1 for PostgreSQL and MySQL.HIPAA does not explicitly mandate encryption at rest, but it is considered an addressable implementation specification under the Access Control standard, and HHS guidance indicates encryption is the most effective way to satisfy the PHI protection requirements. In practice, any HIPAA-compliant AWS architecture will encrypt all PHI at rest.
| Service | Encryption Configuration |
|---|---|
| S3 | SSE-KMS with a CMK. Set bucket default encryption and block SSE-S3 via bucket policy condition s3:x-amz-server-side-encryption: aws:kms. |
| RDS | Enable encryption at creation time with a KMS CMK. Encryption cannot be enabled on an existing unencrypted instance without creating a snapshot and restoring to an encrypted instance. |
| EBS | Enable EBS encryption by default at the account level. Use KMS CMKs for volumes attached to instances handling PHI. Encrypt snapshots. |
| DynamoDB | Enable encryption with KMS CMK (not the default AWS-owned key) for auditable key usage tracking in CloudTrail. |
| EFS | Enable encryption at creation. Enable in-transit encryption using the EFS mount helper with TLS option. |
| Secrets Manager / SSM Parameter Store | Use Secrets Manager for database credentials and API keys. Encrypt with KMS CMK. Never store PHI directly in Secrets Manager values. |
All encryption for PHI should use AWS KMS Customer Managed Keys (CMKs), not AWS-owned or AWS-managed keys. CMKs provide:
Use separate CMKs for different PHI categories or systems (e.g., one CMK for the patient records database, another for audit log encryption). This limits blast radius if a key policy is misconfigured and provides granular access control.
PHI-handling systems should be deployed in private subnets with no direct internet access. Traffic flows through:
Enable AWS Config to continuously monitor security group rules, encryption settings, and public access configurations. Set up Config rules for s3-bucket-public-read-prohibited, rds-storage-encrypted, ebs-optimized-instance, and cloud-trail-encryption-enabled at minimum.
Building a HIPAA-compliant platform on AWS?
Denvan Consulting designs and audits HIPAA-eligible AWS architectures, including security control mapping, BAA guidance coordination, and Security Rule gap assessments against your existing infrastructure.
Talk to us