Engagement led by Cloudsnap’s founding engineer

A multi-tenant healthcare platform on AWS, aligned with HIPAA and PCI DSS and run for seven years

A medical records platform for clinics, built on AWS from the ground up with HIPAA- and PCI DSS-aligned security. It supports millions of users.

Results

  • UsersMillions of users supported
  • PaymentsHundreds of thousands of payment transactions
  • ComplianceAbout seven years of compliant operations in a regulated environment

The challenge

The platform keeps electronic medical records for clinics and handles their payments. That means two kinds of regulated data: health information under HIPAA and card payments under PCI DSS. Many clinics share one platform, so each tenant has to be kept separate, and the service has to stay available as usage grows.

It needed a complete AWS architecture built from the ground up, with security designed in from the start rather than added later.

What we did

  1. Architecture. Designed and built the complete AWS architecture from the ground up: multi-tenant and highly available.
  2. Delivery. Built CI/CD and Infrastructure as Code from scratch.
  3. Security by design. IAM, network segmentation and encryption, aligned with HIPAA and PCI DSS.
  4. Data and payments. Built the data platforms and the payment workflows.
  5. Run and scale. Observability, incident response and continuous scaling, from 2019 to 2026.

How this kind of platform fits together

Our standard drawings of the services used here. They show the pattern, not the client’s actual architecture.

  • Change flow
  • Reads state
  • Drift found
  • Fixed in code
Infrastructure as code: plan, review, apply, and a drift checkFlow diagram. Infrastructure is code in Git: Terraform, OpenTofu or Bicep, in modules. Every pull request runs a plan with policy checks and infrastructure code scanning (Checkov, TFLint). The plan is posted to the pull request for review, with an approval step for production. Merging applies the change to your cloud. Plan reads, and apply updates, the remote state, which is locked and encrypted in your own storage. A scheduled plan compares the cloud with the code. In this example someone changes a resource in the console: the drift check finds it and raises an alert, and the fix goes back into code as a pull request. The next run applies it, and the cloud matches the code again.Code in GitTerraform, OpenTofu, BicepPlanOn every pull requestCheckov, TFLint, policyReviewPlan posted to the PRApproval for productionApplyOn mergeYour cloudMatches the codeRemote stateLocked, encrypted, in your storagePlan readsApply updatesDrift checkScheduled planDrift found: changed in the consoleFixed in code, as a pull requestInfrastructure as code: plan, review, apply, and a drift checkFlow diagram. Infrastructure is code in Git: Terraform, OpenTofu or Bicep, in modules. Every pull request runs a plan with policy checks and infrastructure code scanning (Checkov, TFLint). The plan is posted to the pull request for review, with an approval step for production. Merging applies the change to your cloud. Plan reads, and apply updates, the remote state, which is locked and encrypted in your own storage. A scheduled plan compares the cloud with the code. In this example someone changes a resource in the console: the drift check finds it and raises an alert, and the fix goes back into code as a pull request. The next run applies it, and the cloud matches the code again.Code in GitTerraform, OpenTofu or Bicep, in modulesPlan, on every pull requestCheckov, TFLint and policy checksReads the remote stateReviewPlan on the PR, approval for productionApply, on mergeState locked, encrypted, in your storageYour cloudMatches the codeDrift checkA scheduled planDrift found: changed in the consoleFixed in code, as a pull requestThe next run applies the fix and thecloud matches the code again.
A plan runs on every pull request and apply runs on merge, with an approval step for production. State lives in your own storage, locked and encrypted. A scheduled plan catches console changes, and the fix goes back into code.
  • Failing control
  • Passing
  • Exception, signed by you
Hardening to the CIS benchmark, delivered as code, with drift checksFour steps, left to right. 1, Baseline scan: we scan the environment against the CIS benchmark and agreed profile, read-only, with Prowler for cloud accounts, kube-bench and Kubescape for clusters and Wazuh for servers; Level 1 by default, Level 2 where you need it. Failing controls are now open. 2, Findings, agreed with you: a fix list before anything changes; controls you choose to keep as they are become signed exceptions with an owner and a review date. 3, Fixes as code: pull requests in your repositories, applied to non-production first, for example turning storage encryption on and blocking public access, then guardrails that stop the same problems coming back. The controls now pass. 4, Drift checks: monthly rescans and guardrails catch anything that drifts back; a drift found in one month is fixed as code, and the loop returns to step 3.Failing controls openPassing, watched for drift1 Baseline scanAgainst the CIS benchmark,read-onlyProwlerkube-benchKubescapeWazuhLevel 1 by default, Level 2where you need it2 Findings, agreed with youA fix list before anythingchangesControls you keep as they arebecome signed exceptions3 Fixes as codePull requests, non-productionfirst, then guardrails−storage encryption: off+storage encryption: on−public access: allowed+public access: blocked4 Drift checksRescans and guardrails catchanything that drifts backMonthly rescans; drift fixed as codeDrift found: fixed as code againHardening to the CIS benchmark, delivered as code, with drift checksFour steps, left to right. 1, Baseline scan: we scan the environment against the CIS benchmark and agreed profile, read-only, with Prowler for cloud accounts, kube-bench and Kubescape for clusters and Wazuh for servers; Level 1 by default, Level 2 where you need it. Failing controls are now open. 2, Findings, agreed with you: a fix list before anything changes; controls you choose to keep as they are become signed exceptions with an owner and a review date. 3, Fixes as code: pull requests in your repositories, applied to non-production first, for example turning storage encryption on and blocking public access, then guardrails that stop the same problems coming back. The controls now pass. 4, Drift checks: monthly rescans and guardrails catch anything that drifts back; a drift found in one month is fixed as code, and the loop returns to step 3.1 Baseline scanAgainst the CIS benchmark,read-onlyProwlerkube-benchKubescapeWazuhLevel 1 by default, Level 2where you need it2 Findings, agreed with youA fix list before anythingchangesControls you keep as they arebecome signed exceptions3 Fixes as codePull requests, non-productionfirst, then guardrails−storage encryption: off+storage encryption: on−public access: allowed+public access: blocked4 Drift checksRescans and guardrails catchanything that drifts backMonthly rescans; drift fixed as codeDrift found: fixed as code again (back to 3).

Stack

  • AWS
  • CI/CD
  • Infrastructure as Code
  • IAM
  • Network segmentation
  • Encryption
  • Observability

Related services

  • AWS

    AWS landing zones on Control Tower, then ECS Fargate or EKS and managed operations. Built as code in your Git, at a fixed price.

  • Platform engineering & IaC

    Your infrastructure in Terraform or OpenTofu, GitOps for deploys, golden paths for new services and patched, rebuildable VM fleets. Fixed price.

  • Compliance readiness

    SOC 2, ISO 27001, PCI DSS, EU Cyber Resilience Act and UK Cyber Essentials readiness. We implement the controls, not just the paperwork.

  • Managed services

    Managed Kubernetes, VMs and cloud, a DevOps retainer or an hours bank. Prices on the page, an SLA tier on every plan, a documented exit.

  • Incident management

    Named engineers, an escalation matrix, status page updates on a schedule, and blameless reviews within 5 business days. Response times in the contract.

More case studies

Recognize your situation?

Thirty minutes with an engineer who would do the work. We’ll tell you which of these paths fits, or whether you need any of them.

Or email hello@cloudsnap.io. We reply within one business day.