Moving from Medplum Cloud to self-hosted Medplum

A regulatory or contractual requirement can force Medplum off the hosted service. This page covers what self-hosting takes over, how data is exported and cut over, and which features differ.

On this page

What moving from Medplum Cloud to self-hosted Medplum involves

When a regulator or a contract requires Medplum to run in infrastructure you control, the move is mainly an operations change, plus a data export and a cutover. You take over upgrades, the PostgreSQL database and Redis cache, on-call coverage, and the compliance evidence that the hosted service previously carried for you. Effort depends on three things: the size of your dataset, the number of integrations that must be re-pointed, and how much of the hosted environment your team has to replicate. Medplum's self-hosting considerations explicitly list regulatory or contractual constraints, such as US federal work that must stay on-premises, as a valid reason to self-host.

Start by listing what the hosted service does for you today and assigning an owner to each item. Upgrades are the largest recurring change. Self-hosted Medplum must move through each minor version in sequence, and post-deploy data migrations can run for hours or days on large datasets, so you need a release calendar and a test environment sized to your data. Confirm who patches the operating system, the container or cluster layer, PostgreSQL and Redis, and how you will meet Medplum's security patch targets of 7 days for critical and 14 days for high vulnerabilities, as set out in its versions and release policy. Compliance also shifts: certifications such as ONC Health IT certification attach to Medplum's hosted environment and how it is operated, not to the open-source code, so your own environment must be documented and evidenced under your own controls.

Before you commit, check which hosted features do not carry over. Twilio SMS integration is available on hosted Medplum only and is not offered for self-hosted deployments, so any patient messaging built on it needs an alternative. Ask your Medplum contact to confirm the current list of hosted-only features against your workflows, and ask for a written view on the identity provider setup you will need, since multiple external identity providers for SSO are listed as an enterprise feature on the pricing page. Those checks, together with a measured export and a cutover plan, determine the scope of the move.

What carries over from Medplum Cloud and what changes

This table compares each hosted Medplum capability with its self-hosted equivalent and gives a migration note for each row. Read it as a checklist: the code carries over, but the hosted environment, its agreements and its certifications do not, so each row names what you must rebuild or re-test.

CapabilityMedplum CloudSelf-hosted Medplum
FHIR R4 API and dataOperated by Medplum with the hosted database and backupsSame open-source server code runs in your infrastructure; you export, load and verify data yourself
Medplum Auth and external identity providersMedplum Auth with hosted SSO connections, including multiple external providers on paid plansSame auth component, but identity providers, redirect URIs and client registrations must be re-created and re-tested
Bots and SubscriptionsRun on the hosted execution environment managed by MedplumRun on infrastructure you operate; secrets, execution backends and monitoring become your responsibility
HL7 client and serverAvailable on the hosted serviceAvailable in the codebase; network exposure, ports and interface endpoints must be re-configured and re-tested
Medplum AgentConnects on-premises systems to the hosted serviceRe-point agents to your self-hosted server and re-validate each device or interface connection
Web appServed from Medplum's hosted domainServed from your domain; branding, email links and CORS settings must be set for your environment
BAA and MSA coverageStandard BAA and MSA agreements included on paid cloud plansNo Medplum-provided hosting agreement; confirm your own contracts cover the hosting and operations you take on
CertificationsHosted environment and its operation are covered by Medplum's certification scopeCertifications attach to the hosted environment, not the code; your own environment needs its own assessment evidence
Twilio SMSAvailable on hosted MedplumNot available for self-hosted deployments; plan an alternative messaging path before cutover

Who runs what before and after the move off Medplum Cloud

The diagram starts with the source system on Medplum Cloud, where Medplum operates the server, database, cache, upgrades and monitoring under a shared compliance model. Data leaves through an export path into your cloud account or data center, where your team takes over the Medplum server, PostgreSQL, Redis, identity provider, Bots and integrations. Check each hand-off with the vendor: who owns upgrades, backups, patching, monitoring and on-call, and who holds the compliance evidence after cutover.

Trust boundary and hand-offs before and after leaving Medplum Cloud.

Which self-hosting path fits your constraints for self-hosted Medplum

AWS deployment with CDK and CloudFormation is the option Medplum's self-hosting docs recommend. It gives your team a defined starting point for the network, database, cache and compute layers, so most of the early work is adapting the stack to your account controls rather than designing the topology from scratch. Your team still owns the AWS account, IAM, encryption keys, backups and the configuration that the stack leaves to you.

  • Operating responsibility: Your cloud team owns the AWS accounts, networking, IAM roles and the managed database and cache services the stack provisions.
  • Upgrade mechanics: Plan CDK stack updates alongside each Medplum minor version, applied in sequence.
  • Evidence scope: AWS account configuration, CloudTrail and encryption settings become part of your compliance evidence.
  • Confirm with Medplum: Which CDK and CloudFormation versions match the Medplum release you plan to run, and how the stack handles region and multi-AZ settings.
  • Confirm internally: Whether your AWS landing zone and service control policies allow the resources the stack creates.

Confirm these points before choosing this path, because the stack's defaults will shape your on-call runbooks.

How the self-hosted Medplum move runs from inventory to decommission

The sequence turns a regulatory or contractual requirement into a tested self-hosted Medplum deployment, with a verified data copy, a reconciled parallel period and a documented cutover and retirement of the hosted tenant.

  1. Scope the requirement in writing

    Record the regulatory or contractual clause that forces the move, the systems in scope, the data categories, the dates the obligation applies from, and who signs off on the decision. Name the compliance owner and the business owner for the cutover. Confirm with your counsel or compliance team exactly what the requirement demands, such as where data must reside and who may operate the system, since those answers change the deployment path. The step is done when a signed scope document exists that the rest of the plan can be measured against.

  2. Inventory data, integrations, identity and Bots

    List every resource type and volume in the hosted tenant, every Subscription, Bot, Agent connection, external system that reads or writes Medplum, the identity providers and client applications that sign in, and any hosted-only services in use. For each hosted-only feature, such as Twilio SMS integration, which Medplum documents as available on hosted Medplum only, record whether a self-hosted equivalent exists or must be built, replaced or dropped. Make that decision with the business owner before cutover, not during it. The step is done when the inventory has an owner and a disposition for every item.

  3. Stand up a self-hosted pilot on the chosen path

    Choose a deployment path from Medplum's self-hosting options, with AWS via CDK and CloudFormation as the documented recommended route, and note that the Terraform-based GCP and Azure deployments are marked Beta. Build the infrastructure, PostgreSQL and Redis, email, storage and identity configuration in a non-production environment, and confirm the version you install matches the release your plan targets. The pilot is complete when the server starts, the web app and API respond, sign-in works through your chosen identity provider, and the team has rehearsed one upgrade through each minor version in sequence.

  4. Export and load a test copy

    Export data from the hosted tenant, map it into the pilot, and load it in an order that lets references resolve. Keep the export manifest with resource counts per type, the load logs and any rejected records. Run the load at least once from start to finish, and record how long it took so the cutover window is planned from measured throughput rather than estimates. The step is done when a complete test load exists and its exceptions are triaged with an owner each.

  5. Run a parallel period with reconciliation

    Keep the hosted tenant authoritative while the self-hosted copy receives the same changes, through dual write or a scheduled delta load. Reconcile on two levels: counts by resource type and reference integrity across the two systems, then sampled record comparisons, including whole-chart reviews for patients with complex histories. Track each discrepancy to a root cause. The parallel period ends when counts match within the tolerance agreed in the scope document and every sampled record has been reviewed with no open defect.

  6. Set the cutover window and rollback criteria

    Agree the cutover window with the clinical and operational teams, the sequence of write and read switches, and the conditions that trigger rollback, such as failed reconciliation, sign-in failures, integration errors or unacceptable latency. Assign who can call a rollback and how long the hosted tenant stays writable as a fallback. Confirm that Subscription and Bot side effects are paused or re-pointed so they do not fire twice. The step is done when the runbook has named owners, written triggers and a tested way to reverse each switch.

  7. Cut over to the self-hosted server

    Freeze writes on the hosted tenant, run the final delta load, repeat the count and reference checks, then switch authoritative writes and reads to the self-hosted deployment. Update client applications, identity redirects and external integrations to the new endpoints and confirm each one with a test transaction. Watch the agreed metrics through the early period and keep the rollback path open until the exit criteria in the runbook are met. The step is done when the self-hosted server is the system of record and the sign-off records show each integration checked.

  8. Retire the hosted tenant after the retention period

    Once the parallel and fallback periods close, confirm the retention obligations that apply to the hosted data, export a final archive in a format your compliance team accepts, and document where that archive is held. Then revoke credentials, remove integrations pointing at the hosted tenant, and close the subscription or tenant under your contract terms. Keep the reconciliation records and the signed scope document with the archive. The step is done when the hosted tenant is closed, the archive is verified and the evidence package is filed.

What self-hosting takes over: upgrades, PostgreSQL, Redis and on-call

Leaving Medplum Cloud means the operating duties that the hosted service carried now sit with your team. The first and most time-sensitive is upgrading through every minor version in sequence. Medplum's upgrading guide says skipping versions, for example going from v3.1.2 straight to v4.3.4, causes startup failures, and post-deploy data migrations can run for hours or days on large datasets. Plan upgrade windows around that possibility, and confirm with Medplum how long migrations ran on datasets close to your size before you commit to a date. Your team also needs a process for tracking releases. Medplum ships major versions annually in Q4, minor versions two to three times a year, and patches weekly, so someone must own the release feed and decide which changes you take.

Security patching is the second duty. Medplum's versioning policy targets fixes within 7 days for critical vulnerabilities (CVSS 9.0 or higher) and within 14 days for high ones (CVSS 7.0 to 8.9). On the hosted service Medplum applies these to its own environment. Self-hosted, your team must apply the upstream fix to your build, test it against your data and deploy it inside those windows. Written runbooks for each step, and a named owner for each release, are what keep those targets achievable. Confirm the support window for the major version you intend to run, since each major version receives one year of Active support and one year of Maintenance, with an Enterprise extension available.

The data layer and operations sit under both. Medplum's server uses PostgreSQL as its database and Redis as its cache, so your team owns their versions, replication, backups with tested restores, connection limits, capacity planning and monitoring. Ask Medplum's self-hosting documentation which PostgreSQL and Redis versions each release expects before you size instances. Establish on-call coverage that covers the application, the database and the cache, with escalation paths to Medplum for upstream defects. Finally, Medplum's compliance documentation describes compliance as a shared responsibility between Medplum and its customers. On self-hosting, the controls that Medplum Cloud operated, such as hosting environment and operational evidence, become yours to define, run and document for your auditors.

Which export and load paths to confirm before the pilot

Each path below is a route data can take out of Medplum Cloud or into a self-hosted instance during a move. None should be assumed to fit your dataset until you have confirmed its behavior in Medplum's documentation and tested it against your own volumes, credentials and access rules.

FHIR R4 API for search-based extraction

Search-based extraction pages through resources by type and criteria using the standard FHIR R4 API. Confirm the page size, search parameters and sort order your resource types support, then measure how long a full pass takes for your largest types. Check that the account used for export can read every resource you need, since access policies can silently hide records from an under-scoped login. Ask how pagination behaves when records change during a long run.

Self-hosting considerations

GraphQL API for targeted reads

GraphQL suits targeted reads, such as pulling a patient, their encounters and linked observations in one request for a spot check or a chart review sample. Confirm which fields and relationships the schema exposes for your resource types and how query depth and result size are limited. Treat it as a verification tool rather than a bulk path unless testing shows it sustains your volume. Run the same queries against both environments to compare results.

Bots and Subscriptions for live forwarding

During dual running, Subscriptions can trigger Bots that forward create and update events to the self-hosted instance. Confirm how Subscription delivery retries after a failure, whether ordering is guaranteed for a single patient's updates, and what happens to events generated during a server outage. Check the Bot execution limits and secrets handling on both sides, because forwarding volume and credentials are often where dual writes first break.

HL7 client and server for interface traffic

Interface traffic such as ADT and ORU messages reaches Medplum through its HL7 client and server, and the self-hosted instance must receive the same feeds. Confirm which message types and versions are supported, how acknowledgments are returned, and where connections terminate in your network. Plan for the Medplum Agent if any feed comes from on-premises systems. Test each feed separately, because a single unsupported segment can stall a whole channel during parallel running.

What drives the cost and duration of the move

This table compares the factors that move the effort of leaving Medplum Cloud for a self-hosted deployment, and shows which direction each one pushes cost or duration. Read it as a checklist for your own scope: the rows that apply to your data, integrations and compliance obligations are the ones to price. Cost here is your internal team's time plus any partner fee, and a quote should follow a written scope.

DriverWhy it moves cost or durationHow to keep it down
Dataset size and history depthLarger repositories and longer audit history mean longer exports, verification and, for later upgrades, longer post-deploy migrations. Every extra year of history is more to validate.Agree in writing which history must move and which can stay in the hosted archive for a defined period.
Number of Bots, Subscriptions and interfacesEach Bot, Subscription and HL7 interface must be re-deployed, re-secured and re-tested on your infrastructure, and each has its own side effects during cutover.Inventory them first and retire unused ones before the move. Group similar Bots for shared test cases.
Identity provider complexityMedplum Auth, external providers, domain-level corporate providers and MFA each need separate configuration, redirect URIs and user testing. Multiple providers multiply the test matrix.List every sign-in path and every MFA method in use. Confirm which external providers your identity team will operate.
Access policies and project structureMany projects, tenants and access policies take longer to map and re-verify, and mistakes here are usually found late in testing.Document the current access model and reduce duplicate or stale policies before export.
Chosen deployment pathEach supported path carries its own tooling, networking, storage and backup work. Terraform-based GCP and Azure options are marked Beta in Medplum's self-hosting docs, which adds validation effort.Choose the path your team already operates and confirm current support status for it with Medplum before scoping.
Compliance evidence requiredMedplum's compliance documentation states that compliance is a shared responsibility. Your team must produce access logs, change records, backup restore tests and policy evidence that the hosted service previously supplied in part.Ask the assessor or compliance lead for the exact evidence list before design, then map each item to an owner.
Length of the parallel runRunning hosted and self-hosted environments side by side doubles some operating work and extends the period in which both must be kept consistent.Set a fixed parallel-run window and explicit exit criteria in the cutover plan.
Existing AWS, Kubernetes or Azure operating skillsTeams already running the target platform need less time on networking, IAM, storage and monitoring. Teams new to it need training or outside help, which adds time and cost.Assess skills against the chosen path early. Ask any partner to name who will operate the system after handover.

Which hosted features and certifications do not carry over

Two things a hosted Medplum account gives you do not move with the code: the Twilio SMS integration and the compliance evidence attached to the hosted service. The Twilio SMS integration is available on hosted Medplum only and is not available for self-hosted deployments, so any workflow that sends texts, such as appointment reminders or patient notifications, needs a replacement before cutover. Inventory every Bot, Subscription and clinical workflow for SMS calls, then choose an alternative SMS provider that your team can integrate, host or contract for yourself, and test delivery, opt-out handling and message content in your own environment. Confirm current Twilio support terms with Medplum directly, since the Twilio SMS integration documentation is the reference for what the hosted service provides.

Certifications such as ONC Health IT certification attach to Medplum's hosted environment and to how that environment is operated, not to the open-source code. A self-hosted deployment therefore cannot inherit the hosted certification or its evidence. Your organization needs its own evidence for the controls it operates: hosting configuration, access reviews, change records, backup and restore tests, audit logging and incident response. Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers, so map each control in the Medplum compliance documentation to an owner in your organization, and ask your certification body or auditor which evidence they will accept for a self-hosted system. DeployOpen can prepare systems and evidence for these assessments, but it does not issue certifications or attestations.

Paid hosted plans include standard BAA and MSA agreements, which the hosted service provides to customers. On the self-hosted path, those agreements do not come with the software, so your legal team must set the terms that govern the hosting environment, any subcontractors and any implementation partner, including business associate terms where protected health information is involved. Medplum's pricing page lists hosted plans and self-hosting options, including the free Community option and custom-priced Enterprise Self-Hosted, and it is the place to confirm current plan terms before you decide. Ask for the agreement scope in writing, and confirm which support, security patch and upgrade commitments apply to your chosen option.

What usually goes wrong in a self-hosted Medplum move and how to prevent it

Most problems in a move off Medplum Cloud come from work the vendor did quietly before: upgrades, identity setup, hosted-only features, compliance evidence and overnight coverage. Each card below names one of those gaps and the step that closes it before cutover.

Skipping minor versions on upgrade

Self-hosted Medplum must be moved through each minor version in sequence, and jumping ahead causes startup failures. Your team inherits this rule once the hosted service stops applying upgrades for you. Before cutover, write a version path from your install version to the current release, listing every minor step, and rehearse it on a copy of the environment. Check each step against the upgrade guide rather than working from memory.

Example skipped path
v3.1.2 to v4.3.4
Upgrade guide

Underestimating post-deploy migration time

Some upgrades run data migrations after deployment, and on large datasets these can run for hours or days. The hosted vendor absorbed this time for you, so your upgrade window may now be far longer than expected. Time the migration on a restored copy of production data, not an empty test database. Record the duration per release, and set rollback windows that account for it before you schedule the first production upgrade.

Migration duration range
Hours or days

Losing hosted-only workflows at cutover

Some features run only on the hosted service. Twilio SMS integration, for example, is not available on self-hosted deployments, so patient text reminders or notifications can stop without anyone noticing. Build a feature inventory covering every Bot, Subscription, integration and notification that users touch today. For each item, mark whether it works self-hosted, and get the business owner to sign off on any gap or replacement before cutover.

Twilio SMS docs

Identity provider settings that differ from the hosted tenant

The hosted tenant may have been configured with external identity providers, domain-level corporate sign-in, multi-factor settings and client credentials that were set up by the vendor or copied from a template. A self-hosted instance starts with its own configuration, so redirect URLs, claims mapping and token settings must be rebuilt. Export the current identity configuration, recreate it in the new environment, and test sign-in for each user group, including break-glass admin access and machine clients.

Authentication docs

Compliance evidence without an owner

Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers. Certifications that attach to the hosted environment, such as ONC certification, do not carry over to your self-hosted deployment, and the evidence those reviews relied on must now come from you. Assign a named owner for each control area, such as access reviews, backup restore tests and change records, and confirm with your auditor which artifacts they will accept before cutover.

Compliance docs

On-call gaps after the vendor steps back

Once the hosted service no longer runs your environment, nobody outside your organization is paged when Medplum, PostgreSQL or Redis fails. Gaps often appear in the first weeks because runbooks, alert routes and escalation contacts were written for the hosted model. Before cutover, define who is on call for each component, which alerts page them, and how a database incident is escalated to a DBA. Run a tabletop exercise with the on-call roster before go-live.

Questions buyers ask before a self-hosted Medplum move

What does moving from Medplum Cloud to self-hosted Medplum cost?

The cost depends on the scope of work, the target infrastructure and how much of the operating model your team takes on, and no price is published for this work. Cost components include the planning and architecture work, the deployment build in your cloud account or data center, data export and load work, validation, cutover support, and the handover of runbooks. Recurring costs sit mostly on your side: cloud infrastructure for the application, PostgreSQL and Redis, backups, monitoring, staff time for upgrades and on-call, and any paid Medplum licensing that applies to your self-hosted tier. Ask for a quote that lists each component separately, states what is one-time and what recurs, and names the Medplum edition assumed. DeployOpen quotes follow from a written scope, and engagements are typically fixed-scope.

How long does a self-hosted Medplum move take?

Duration is set by the amount and quality of the data to move, the number of integrations that must be rebuilt, the target platform and the approval steps your compliance team requires. The Medplum upgrading guide notes that post-deploy data migrations can run for hours or days on large datasets, so throughput testing should happen early and feed the cutover plan. Ask for a timeline built from measured load times in your environment, not a generic estimate. Parallel running for a defined period is usually part of the plan, and it adds time but lowers cutover risk. Confirm with your team which regulatory approvals must come before production traffic moves.

What does the work require from our own team?

Your team supplies decisions, access and knowledge that only your organization has. That includes named owners for data authority, sign-off on patient-matching and mapping rules, access to cloud accounts or data center hosts, identity provider configuration, network and DNS changes, and clinical or business validation of sample records. Your security and compliance staff review the design and the evidence. Expect a steady time commitment from a small group of people during planning and cutover, with a smaller ongoing commitment once the system is live. Agree these roles in the written scope before work starts.

Can our own engineers run the self-hosted move without a partner?

A capable platform team can do it alone if it has the skills and the time, and many do not have both at once. The work needs Linux and container operations, Kubernetes or AWS infrastructure as code, PostgreSQL administration, Redis operations, TLS and identity configuration, and familiarity with FHIR data modeling and Medplum's access model. Upgrades must pass through each minor version in sequence, so someone must own that discipline permanently. Ask yourself whether your team can staff on-call for the platform and run a rehearsal of the cutover. A partner can cover the gaps during the move and leave your team with runbooks, but the operating responsibility stays with you.

Does self-hosting change our compliance posture?

Yes. Medplum's compliance documentation describes compliance as a shared responsibility between Medplum and its customers, and self-hosting moves more of the operating controls to your organization. Certifications such as ONC Health IT certification attach to Medplum's hosted environment and how it is operated, not to the open-source code, so a self-hosted deployment needs its own evidence. You will own hosting controls, backups, access reviews, change management, patching windows and audit logging, and you will hold the evidence for them. Confirm with your compliance lead which Medplum certifications, if any, your requirement actually depends on before planning the self-hosted controls.

What happens to the hosted Medplum tenant during the parallel run?

The hosted tenant usually remains the system of record for production traffic until the cutover decision is made, while the self-hosted target is loaded and checked. During a parallel run, write authority is defined phase by phase, and changes made in one environment must be carried to the other through a planned backfill or dual-write path. Subscriptions and Bots on the hosted tenant can fire side effects, so they must be paused or duplicated deliberately to avoid double notifications. Plan the rollback trigger and the date you stop writing to the hosted tenant in advance. Confirm with Medplum how account termination and data export from the hosted service are handled under your contract.

Does DeployOpen issue certifications for our self-hosted deployment?

No. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms, and it prepares systems, controls and evidence for compliance assessments. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments and issue any reports or certificates. Ask a partner to show you which evidence it will prepare, such as configuration records, access policy exports, backup test results and change logs, so your auditor has what it needs when it reviews the deployment.

How DeployOpen scopes, delivers and supports the move

DeployOpen moves Medplum off Medplum Cloud and into infrastructure you control, with the scope, build, handover and support agreed in writing before work starts. Engagements are fixed-scope, so the cutover plan, upgrade path and compliance evidence are defined up front for your environment.

How we scope

  • Inventory the hosted tenant, projects, bots, subscriptions, identity providers and integrations that must move.
  • Confirm which Medplum Cloud features in use, such as Twilio SMS, have no self-hosted equivalent.
  • Agree in writing the target deployment, data export method, cutover window and rollback criteria.

How we build

  • Install self-hosted Medplum on your chosen platform with PostgreSQL and Redis sized and backed up.
  • Connect your identity provider, access policies and client credentials to match the hosted configuration.
  • Rehearse the data export and import, then verify counts and references before any production cutover.

How we hand over

  • Deliver runbooks for upgrades through each minor version in sequence, with rollback steps.
  • Document the controls your compliance and security teams must own under the shared responsibility model.
  • Walk your on-call and platform teams through monitoring, backups and the vendor security patch timelines.

How we support

  • Offer ongoing upgrades, patch application and monitoring as a retainer after handover.
  • Retest access controls and configuration after each Medplum release you adopt.
  • Confirm the support boundary, response expectations and recurring costs in the quote before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.