← All articles
Compliance8 min read

HIPAA-Ready Cloud Infrastructure: What Engineering Owns

PHI boundaries, encryption, access logging, and BAAs—infrastructure readiness without confusing it for a certification stamp.

HIPAA does not certify cloud platforms and it does not prescribe specific technologies. It requires covered entities and their business associates to protect electronic protected health information (ePHI) with administrative, physical, and technical safeguards appropriate to their risk. In the cloud, the provider handles much of the physical layer, but the configuration of everything you build—identity, encryption, logging, networking, backups—remains your responsibility. This guide covers what engineering teams actually own.

From PHI to evidence

  1. Map ePHIData flows, stores, and who touches them
  2. Eligible servicesBAA in place; only HIPAA-eligible services for ePHI
  3. SafeguardsAccess, encryption, audit, integrity, transmission
  4. ResilienceBackups, DR, and tested restores
  5. EvidenceContinuous checks and retained logs
Know where ePHI lives, protect it with technical safeguards, and be able to prove it.

Start with the shared responsibility model and a BAA

Before storing ePHI in any cloud, sign a Business Associate Addendum with the provider. AWS, Microsoft Azure, and Google Cloud all offer one and publish lists of services covered by it. Use only those services for ePHI, and keep the list in your architecture documentation, because a convenient service outside the BAA scope can quietly break your compliance posture. The BAA covers the provider's responsibilities; your configuration is still your responsibility.

1. Map where ePHI lives and flows

You cannot protect what you have not found. Document every system that creates, receives, stores, or transmits ePHI: application databases, object storage, message queues, analytics warehouses, logs, backups, and third-party integrations. Logs and analytics are the most commonly forgotten—application logs that capture request bodies can contain patient data. Tag resources that hold ePHI so automation, monitoring, and audits can find them.

2. Isolate ePHI workloads

Run ePHI workloads in dedicated accounts, subscriptions, or projects with stricter guardrails than the rest of the estate. This narrows the scope of audits and lets you enforce controls—encryption, logging, region restrictions, no public endpoints—through organisation-level policy rather than per-resource discipline.

How does your cloud measure up?

Score your setup across foundation, delivery, reliability, security, and cost in 3 minutes—instant results, no email needed.

Take the free scorecard

3. Technical safeguards, mapped to cloud controls

HIPAA Security Rule technical safeguards and typical cloud implementations
SafeguardIntentCloud implementation
Access controlOnly authorised people and systems reach ePHISSO with MFA, least-privilege roles, just-in-time admin, workload identity, emergency access procedure
Audit controlsRecord activity on systems with ePHIOrganisation-wide audit logs, database audit logging, centralised and tamper-resistant log storage
IntegrityProtect ePHI from improper alteration or destructionVersioning, object lock for critical records, checksums, change control
Person or entity authenticationVerify identity before accessFederated identity, MFA, short-lived credentials, no shared accounts
Transmission securityProtect ePHI in transitTLS 1.2+ everywhere, private connectivity, no plaintext internal protocols

4. Encrypt at rest and in transit—and control the keys

Encryption is an addressable specification under HIPAA, which in practice means you need a strong reason not to do it. Encrypt every data store holding ePHI with customer-managed keys so you control key policy, rotation, and access logging. Enforce TLS for every connection, including internal service-to-service traffic, and reject unencrypted connections at the database and storage level.

An ePHI bucket with enforced encryption, versioning, and TLShcl
resource "aws_s3_bucket" "phi_documents" {
  bucket = "example-phi-documents-prod"
  tags   = { data_classification = "ephi" }
}

resource "aws_s3_bucket_public_access_block" "phi_documents" {
  bucket                  = aws_s3_bucket.phi_documents.id
  block_public_acls       = true
  block_public_policy     = true
  ignore_public_acls      = true
  restrict_public_buckets = true
}

resource "aws_s3_bucket_server_side_encryption_configuration" "phi_documents" {
  bucket = aws_s3_bucket.phi_documents.id
  rule {
    apply_server_side_encryption_by_default {
      sse_algorithm     = "aws:kms"
      kms_master_key_id = aws_kms_key.phi.arn
    }
    bucket_key_enabled = true
  }
}

resource "aws_s3_bucket_versioning" "phi_documents" {
  bucket = aws_s3_bucket.phi_documents.id
  versioning_configuration {
    status = "Enabled"
  }
}

data "aws_iam_policy_document" "tls_only" {
  statement {
    sid     = "DenyInsecureTransport"
    effect  = "Deny"
    actions = ["s3:*"]
    resources = [
      aws_s3_bucket.phi_documents.arn,
      "${aws_s3_bucket.phi_documents.arn}/*",
    ]
    principals {
      type        = "*"
      identifiers = ["*"]
    }
    condition {
      test     = "Bool"
      variable = "aws:SecureTransport"
      values   = ["false"]
    }
  }
}

resource "aws_s3_bucket_policy" "phi_documents" {
  bucket = aws_s3_bucket.phi_documents.id
  policy = data.aws_iam_policy_document.tls_only.json
}

5. Access: least privilege and accountability

Every person and service that touches ePHI must have its own identity, and access should be the minimum necessary. Use group-based roles from your identity provider, require MFA, grant administrative access just in time with approval and automatic expiry, and review access quarterly. Production database access for engineers should go through audited, temporary sessions rather than standing credentials. Keep a documented emergency access procedure, test it, and alert on every use.

6. Audit logging you can actually use

Enable control-plane audit logs organisation-wide, database audit logging for tables containing ePHI, and application-level logs that record which user viewed or changed which patient record. Store logs in a separate, locked-down account with retention aligned to your policy—HIPAA documentation requirements are commonly interpreted as six years—and make sure logs themselves do not contain ePHI unless they are protected to the same standard.

7. Backups, disaster recovery, and tested restores

The contingency plan standard requires data backup, disaster recovery, and emergency-mode operation plans. Automate encrypted backups with retention, copy them to a separate account and region, protect them from deletion, and test restores on a schedule. A backup that has never been restored is an assumption, not a control. Document recovery time and recovery point objectives for each ePHI system and verify you meet them in drills.

8. Vulnerability and configuration management

Scan workloads and images continuously, patch on a defined schedule, and run posture management against a recognised benchmark such as the CIS Foundations Benchmarks for your cloud. Feed findings into a tracked remediation process with owners and due dates. Auditors and partners will ask how you identify and fix weaknesses; continuous evidence beats a once-a-year scan.

9. Vendors and integrations

Every third party that receives ePHI—analytics tools, support platforms, email providers, AI services—needs a BAA and a security review. Watch for accidental flows: error-tracking tools that capture request payloads, chat tools where staff paste patient details, or AI assistants that receive clinical notes. Block or scrub ePHI at the integration boundary where a BAA is not in place.

10. Continuous evidence

HIPAA requires periodic risk analysis and evaluation, and partners increasingly ask for SOC 2 or HITRUST reports that depend on the same controls. Automate checks for encryption, logging, public exposure, MFA, and backup status, and keep the results as timestamped evidence. When someone asks how you protect ePHI, you can show the current state rather than describe an intention.

Checklist

  1. BAA signed with the cloud provider; only covered services used for ePHI.
  2. ePHI data map covering databases, storage, logs, analytics, backups, and vendors.
  3. Dedicated, policy-restricted accounts or subscriptions for ePHI workloads.
  4. Customer-managed encryption at rest and TLS everywhere, enforced by policy.
  5. Unique identities, MFA, least privilege, just-in-time admin, quarterly access reviews.
  6. Tamper-resistant audit logs with defined retention, including application access logs.
  7. Encrypted, cross-region backups with tested restores and documented RTO/RPO.
  8. Continuous vulnerability and posture management with owned remediation.
  9. BAAs and controls for every vendor that receives ePHI.
  10. Automated, retained evidence for risk analyses and audits.

HIPAA readiness in the cloud is mostly good engineering applied consistently and proven continuously. Our Control & Evidence Ready and Cloud Posture Hardening modules implement these safeguards and the evidence trail for healthcare workloads on AWS, Azure, and GCP.

Key takeaways

  • Engineering owns encryption, access, logging, and BAAs in the shared responsibility model.
  • Inventory PHI flows before hardening random resources.
  • Evidence collection should be continuous—not a week-before-audit scramble.

FAQ

Does HIPAA require a specific cloud?

No. It requires appropriate safeguards and agreements. Your architecture, access model, and operations determine readiness more than the provider logo.

What do auditors usually ask infrastructure for?

Access reviews, encryption settings, logging retention, change evidence, backup/restore proof, and how PHI is segmented from general workloads.

Need help putting this into practice?

Our engineers do this every week. Get a fixed-scope plan for compliance readiness—free scoping call, written price before you commit.

Get a free scoping call