Syncing Medplum to Snowflake and Redshift through Iceberg tables

Population analytics on Medplum data without custom export jobs, covering the Iceberg sync, Snowflake sharing, Redshift access through Lake Formation, redacted views and plan requirements.

On this page

Syncing Medplum to Snowflake and Redshift through Iceberg tables: when teams need it

Choose an Iceberg table sync when your analytics team needs population-level reporting on Medplum data and does not want to own a set of bespoke export jobs that must be rewritten every time the data model changes. The sync approach moves the maintenance burden onto a managed, table-level pipeline, while your warehouse teams query the same tables they already use. Before any design work starts, confirm with Medplum whether this sync capability exists, which plan or deployment model includes it, and what it costs to run. Medplum's public materials do not, in the sources reviewed here, describe a Snowflake or Redshift sync feature, so treat it as a question to answer in writing, not an assumption.

Apache Iceberg is the shared table format in this design. It is an open, Apache 2.0 licensed format for large analytic tables that lets engines such as Spark, Trino and Flink work with the same tables at the same time. Iceberg adds schema evolution without rewriting tables, hidden partitioning and time travel to exact historical snapshots, which matters when population reports must be reproduced for an earlier date. Snowflake and Redshift are the two targets covered because they are the warehouses analytics teams most often ask about for this work, and both can read Iceberg tables. The exact read and write behavior of each (catalog options, external volumes, Lake Formation permissions) must be verified against current vendor documentation for your account and region.

This is different from Bulk FHIR export. Bulk export produces NDJSON files of FHIR resources for a consumer to ingest and transform, which leaves the schema mapping, incremental loads and table maintenance with your team. An Iceberg sync targets analytic tables directly, so the design questions shift to which resources and fields are flattened, how deletes and history are represented, and who can see identifiable patient fields. Plan the redacted views and access model before any data leaves Medplum, because a warehouse grant is far harder to narrow later than an export scope.

Which sync path fits your warehouse and plan

This table compares five routes for moving Medplum data into a warehouse or lakehouse, with the party that owns the catalog and storage on each. Start with the warehouse your analytics team already runs, then check the confirmation column with Medplum and the vendor before committing. The main takeaway is that your existing warehouse and cloud estate usually narrow the choice more than the Medplum plan does.

Sync pathCatalog and storage ownerFitsConfirm before choosing
Medplum Iceberg table syncDepends on sync configuration, so confirm which catalog and bucket hold the tablesPopulation analytics without custom export jobs, on Iceberg tables any compatible engine can readPlan tier required, supported catalogs, Iceberg format version, and refresh behavior
Snowflake secure sharingSnowflake manages the catalog for Snowflake-managed Iceberg tables, or you own storage through an external volumeTeams already running Snowflake that want population tables shared into their accountWhether tables land in Snowflake-managed storage or your external volume, and how other engines reach them
Redshift through Lake FormationAWS Glue Data Catalog and Lake Formation govern access, and you own the S3 bucketAWS estates centered on Redshift that need fine-grained table permissionsRedshift and Iceberg support in your region and version, Lake Formation grants, and whether Medplum writes to your bucket
Self-hosted Trino over IcebergYou own object storage, the table catalog (such as Iceberg REST, Glue, Hive Metastore or Nessie) and the query clusterTeams wanting one open query layer across several engines and cloudsJava 25 runtime (minimum 25.0.1), which catalog Medplum writes to, and who operates the cluster
Bulk FHIR exportMedplum produces the export, and you own the files, load step and warehouse tablesScheduled or one-off extracts when a table format is not requiredExport scope, access policy on the export, file handling, and the load job you must build
Ongoing table maintenanceWhoever owns the catalog and storage in the chosen pathKeeping Iceberg tables healthy after the first sync, including schema changes and rollback needsWho runs snapshot maintenance, how schema changes are announced, and who approves a rollback

How to set up the Iceberg sync step by step

This sequence moves Medplum data into an Iceberg-backed warehouse in six checked stages, from plan confirmation to verified, minimized analytics tables. Each stage closes with a check that the next stage depends on.

  1. Confirm the Medplum plan and deployment model

    The platform owner and the Medplum account contact confirm which plan or self-hosted option you run and whether the Iceberg table sync is included in it. The Medplum pricing page lists the hosted plans and the self-hosted options, so ask for the sync feature list in writing. Confirm a BAA covers any hosted component that holds PHI, and name who operates the sync if you self-host. Done when the plan, deployment model and sync support are documented and signed off by security and compliance.

  2. Define the analytic schema and field list

    The analytics lead and the clinical data owner list each resource type and field that leaves the clinical system, along with the population question each one answers. Start from the questions rather than the full resource, and mark fields that carry direct identifiers, free text or sensitive categories for exclusion or tokenization. Record the mapping from FHIR element paths to warehouse columns and the expected refresh cadence for each table. Done when privacy and the data owner approve the inventory and no resource is exported with an unreviewed field.

  3. Create the Iceberg catalog and storage

    The platform team chooses a catalog and an object storage location for the Iceberg tables and keeps both in your own cloud account. Trino's Iceberg connector accepts Hive Metastore, AWS Glue, JDBC, REST, Nessie and Snowflake catalogs, selected with the iceberg.catalog.type key, and reads Parquet, ORC or Avro. Confirm that your warehouse reader supports the catalog you pick, then enable bucket encryption, access logging and retention rules. Done when a test table holding one known row is read back by at least one engine and only the sync writer role can write to it.

  4. Configure the warehouse reader

    Snowflake and Redshift each reach Iceberg tables through their own access model, so the team configures each one separately. For Snowflake, confirm whether the table is Snowflake-managed or uses an external volume, and whether an external engine must read it through the Horizon Iceberg REST Catalog API. For Redshift, confirm with current AWS documentation how Lake Formation grants table and column permissions over the catalog. Create a read-only reader role. Done when the reader role queries the test table successfully and a write attempt from the same role fails.

  5. Build redacted views for PHI minimization

    The data engineer creates views that expose only the approved fields, with direct identifiers removed, dates generalized where the analysis allows, and identifiers replaced with keyed tokens. Analysts receive access to the views and not to the base tables. Use the warehouse's secure view feature or its equivalent, and confirm that users cannot read the underlying view definitions. Compare each view definition with the approved inventory from step two. Done when an analyst role sees only approved columns through the views and a direct query against a base table is denied.

  6. Verify row counts and freshness

    The data engineer compares row counts for each resource type between Medplum and the Iceberg table over the same time window, and records the snapshot time of each load. When a count differs, use Iceberg snapshot time travel, such as the FOR TIMESTAMP AS OF clause in Amazon Athena engine version 3, to reproduce the table as it stood at an earlier point. Add a freshness check that alerts when the latest snapshot is older than the window the data owner agreed. Done when counts match within the tolerance the data owner has agreed in writing and the freshness alert has been triggered once in a test.

PHI stays in the Iceberg layer until redacted views are applied

The diagram starts at the Medplum PostgreSQL store, where FHIR resources are persisted, and follows them through a sync step into Iceberg tables on object storage. The Iceberg catalog holds table metadata that both warehouses depend on. The trust boundary groups the PHI-bearing storage, and every reader connects only through the redacted view layer. Check that the sync output, catalog permissions and view definitions match your privacy review, and confirm the exact sync mechanism with your DeployOpen team before build.

Medplum data moves into Iceberg tables and reaches warehouses only through redacted views.

Protecting PHI in the warehouse and catalog

Once Medplum data lands in Iceberg tables, Snowflake or Redshift, it is PHI in a new place with new administrators, new engines and new logs. The cards below cover the contracts, access roles, views, keys and audit trails that have to be settled before analysts query the data, and the parts of the control set that stay with your organization.

Confirm BAA coverage for every service

Every service that stores or reads PHI in this pipeline needs to sit under a business associate agreement that your organization has reviewed. That includes the Medplum deployment, the object storage behind the Iceberg tables, the catalog, the query engine, and Snowflake or Redshift. Medplum's paid cloud plans include a standard BAA, but that covers Medplum's own service, not the cloud accounts, catalogs or warehouse accounts you add around it. Ask each vendor in writing which agreement covers which component and where the data is processed.

Medplum pricing

Least-privilege roles in Lake Formation and Snowflake

Grant the sync identity write access to the target tables and nothing else, and give analysts read access only to the tables and columns their work needs. In Redshift, Lake Formation permissions decide which databases, tables and columns are visible through the shared catalog, so review them as table grants rather than as bucket policies. In Snowflake, use separate roles for loading, administration and analysis. Record who owns each role and review the grants on a fixed schedule.

Redacted views for analysts

Most population analytics does not need names, contact details, addresses or free-text notes. Build views that drop or transform direct identifiers, such as hashing a stable pseudonymous key or truncating dates of birth to year, and grant analysts access to the views instead of the base tables. Decide with your privacy office which fields count as identifiers for your use case, and test the views with sample queries to confirm that no identifier leaks through a join or a free-text column.

Encryption and key ownership

Confirm where encryption keys live for the object storage, the Iceberg catalog and the warehouse, and who can disable or rotate them. Customer-managed keys let your organization revoke access to the data independently of the vendors, but they also make your key administrators a critical dependency. Ask each provider whether keys are provider-managed or customer-managed, how rotation is handled for existing Iceberg snapshots, and what happens to retained snapshots after a key is revoked.

Audit logging of reads

A warehouse is only reviewable if reads are logged with the identity, the table or view, and the time. Turn on query history in Snowflake and CloudTrail data events or Lake Formation audit logs for the Redshift path, and send them to a store your security team controls. Keep the Medplum side of the chain too, since Medplum's own audit events show what the sync identity read from the clinical repository. Test that a sample analyst query appears in the logs with enough detail to answer who accessed which PHI.

Shared responsibility for compliance

Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers. For this pipeline, Medplum covers the platform it operates, while your organization owns the warehouse accounts, the Iceberg tables, the role design, the redacted views and the logs. Write a responsibility matrix that names an owner for each control before the first analyst is onboarded. DeployOpen can prepare the systems and evidence for an assessment, but independent auditors and certification bodies issue any attestation.

Medplum compliance docs

Trade-offs between managed sync and a self-hosted lakehouse

The core trade-off is who carries the operating work of the lakehouse. A managed sync leaves object storage, the table catalog and the query engine with the platform side, so your team pays for the time to configure and monitor the sync and for warehouse licenses, but not for running the storage and query layers. A self-hosted lakehouse built on Trino, object storage and an Iceberg catalog such as a REST catalog or Hive Metastore moves that work to you. Trino needs separate object storage and a table catalog because it queries data where it lives rather than storing it, so each of those three components needs its own owner, upgrade cycle, access controls and backups. Ask every vendor in the quote which of these layers they run, which they only connect to, and who is paid for each.

Iceberg gives both paths the same table features, which is the main reason to choose the format rather than the vendor. Iceberg supports schema evolution without rewriting tables, hidden partitioning, time travel to exact historical snapshots and rollback to an earlier table state. Those features help population analytics on Medplum data, where a FHIR-derived schema changes as profiles are added and an analyst may need to reproduce a report as it stood at a past date. Confirm that the Trino Iceberg connector and your warehouse version support the operations your reports depend on, including MERGE if you need updates, and that the Iceberg format version you choose is one the engines you run can read.

Self-hosting also adds recurring maintenance that a managed path hides. Iceberg tables accumulate data files and snapshots, so you need a plan for compaction and for expiring old snapshots, both of which affect storage cost and how long time travel remains available. Each engine upgrade, including Trino releases that require a supported 64-bit Java 25 runtime, needs testing against your tables before rollout. Before committing, write down who runs compaction, how long snapshots are retained for audit, who approves a Trino or catalog upgrade and how you would restore a table after a bad write. If your team cannot staff those tasks, a managed warehouse path with a narrower set of redacted views may be the lower-risk choice.

Limits to confirm before you commit

The Medplum-to-warehouse path depends on four things that vary by plan, engine and environment: what the Medplum side offers, which Iceberg features each reader supports, how Redshift access is governed, and how Trino behaves under large batch loads. Confirm each one in writing before a partner or internal team commits to a design.

Plan and sync availability

Confirm in writing whether the Iceberg table sync is included on the Medplum plan you will run, since the pricing page separates hosted plans from custom-priced Enterprise and Enterprise Self-Hosted. Ask whether the sync is offered on Medplum Cloud, on a self-hosted deployment, or both, and whether BAA and MSA terms cover the sync path. Get the answer from Medplum rather than assuming it carries over from another tier.

Medplum pricing

Supported resource types and writes

Ask which FHIR resource types the sync exports, whether nested or extension data is flattened, and how deleted or updated resources appear in the Iceberg tables. Confirm whether the sync is read-only or whether any write path returns to Medplum. A table that lags or omits resources changes which population queries are valid, so test with your own resource mix before you design reports.

Iceberg format version per engine

Each reader must support the format version Medplum writes. Trino's Iceberg connector reads format versions 1 and 2, with version 3 marked experimental, so a version 3 table may not load there. Check Snowflake external volume behavior, Athena engine version 3 and any Redshift reader against the same version before you fix the design.

Trino Iceberg connector

Redshift and Lake Formation access

Redshift reads these tables through Lake Formation, so confirm that your Redshift edition, catalog integration and Lake Formation permissions support the Iceberg tables you plan to expose. Test column-level grants against the redacted views you need for population analytics, because a grant that works on a base table may not carry over to a view. Record which principal reads each table so access reviews can trace it.

Data latency and refresh

Ask Medplum how often the sync writes new snapshots and what lag to expect between a write in Medplum and a visible row in the warehouse. Iceberg time travel and snapshot rollback depend on how often snapshots are committed, so a long refresh interval affects both freshness and recovery points. Set the reporting requirement first, then test whether the sync meets it.

Trino fault-tolerant execution

Fault-tolerant execution is off by default in Trino. Large batch queries need a QUERY or TASK retry policy, and the TASK policy, which is recommended for large batch work, requires an exchange manager that spools to S3, Azure Blob Storage, Google Cloud Storage or HDFS. Confirm that your object storage and cluster sizing support this before relying on Trino for full-population queries.

Fault-tolerant execution docs

Questions buyers ask before syncing Medplum to a warehouse

What drives the cost of syncing Medplum to Snowflake or Redshift?

The cost depends on which warehouse and catalog path you choose, how many resource types and history depth you need, how much of the work your own team already does, and how many redacted views your analysts need. Costs fall into one-time work (design, sync configuration, redacted views, validation and cutover) and recurring work (warehouse compute and storage, Medplum plan fees, monitoring and upkeep). Ask any quote to separate these lines and to state which Medplum plan it assumes, since the Enterprise plan requirement changes the licensing picture. Medplum's public pricing page lists Production at $2,000 per month and Premium at $6,000 per month, with Enterprise custom-priced, so confirm which tier your sync depends on before comparing offers.

Who pays for what in a warehouse sync project?

Usually the client pays for Medplum hosting or licensing, warehouse accounts and compute, object storage, and internal staff time for data governance decisions. A partner such as DeployOpen is paid for the scoped work, which is fixed in writing before work starts. Medplum's own subscription and any Enterprise terms are separate contracts. Ask who owns the Snowflake or Redshift account, who holds the Lake Formation administrator role, and who is responsible for storage costs after handover, because those answers shape both the quote and the ongoing bill.

How long does a Medplum to warehouse sync take?

Duration depends on the number of resource types in scope, the depth of history you need, how many source systems feed Medplum, the number of redacted views, and how quickly your security and data teams approve access. Initial loads of large datasets can take longer than incremental sync, so ask for the initial load window separately from steady-state operation. Ask a partner to show the timeline as dependencies, not a single number, and to identify which steps wait on your teams. No duration in this answer is a guarantee.

What does the project need from our data and security teams?

Your data team needs to define which FHIR resource types, fields and history versions the warehouse should hold, and who owns each analytical dataset. Your security and privacy teams need to approve the redaction rules, the role model in Snowflake or Lake Formation, the encryption and network paths, and the audit logging expected for PHI access. Confirm early whether your Medplum deployment is on Medplum Cloud or self-hosted, because that changes which controls your team owns. Plan for review cycles, since security approvals often set the pace of the project.

Can our internal team build and run the sync without a partner?

Yes, if your team has engineers who know FHIR, Medplum access policies, Iceberg table management and your warehouse platform. The harder parts are usually not the initial export but the ongoing work: schema changes, handling resource history, redacted views that stay correct as data changes, and keeping access policies aligned with warehouse roles. Assess your team against those skills, then decide whether you need a partner for design, for a one-time build, or for an ongoing retainer. Retainers for upgrades and continuous support are available from DeployOpen.

Does the Enterprise plan change what the sync can do?

Medplum's pricing page lists multiple external identity providers for SSO as an enterprise feature, and it offers custom-priced Enterprise plans. Confirm in writing with Medplum which sync features, export capabilities and support terms require Enterprise, rather than assuming Production or Premium covers them. Also confirm the Business Associate Agreement and Master Services Agreement terms that apply to your plan and to any warehouse vendor that receives PHI.

What should we ask a partner or Medplum in a quote?

Ask for a written scope listing the resource types, warehouse targets, catalog choice, redacted views, and handover items. Request separate line items for one-time build, testing, cutover, and recurring operations, plus the assumptions behind each. Ask which Medplum plan and version the design targets, how upgrades and schema changes are handled, what testing proves that redacted views hide the right fields, and who responds when a sync fails. Ask Medplum to confirm plan requirements in writing, and check the current version on its releases page before design starts.

How the engagement is scoped in writing

Before any work starts, DeployOpen and the client agree the scope, deliverables and verification evidence in writing. For a warehouse sync, that means naming the Medplum project and version, the source resource types and any Bulk FHIR or Iceberg export paths in use, the target platform (Snowflake, Redshift through Lake Formation, or a self-hosted Trino and Iceberg stack), and the consumers who will query the data. The written scope also states which redacted views are in scope, who approves them, and what counts as done. Typical evidence includes row counts reconciled between Medplum and the target for each resource type, a record of the Iceberg snapshot or sync run that produced each table, and test queries showing that masked fields return masked values to the roles that should not see raw identifiers. Ask for these items by name in the quote so that acceptance is not left to interpretation.

The warehouse side is built inside the client's own cloud accounts. The Snowflake account, the AWS account holding the Redshift cluster and Lake Formation permissions, the S3 buckets behind the Iceberg tables, and the IAM roles that connect them all stay under the client's ownership, and DeployOpen works through access the client grants and can revoke. The agreement should name each account, who holds the administrator role in it, and where credentials for the sync job are stored. Confirm with your own security team which Snowflake and AWS controls they require for external access, such as network policies, key management and audit logging, and write those requirements into the scope so they are verified rather than assumed. Ownership of the Medplum side, including the Enterprise plan terms that cover this kind of access, should be confirmed with Medplum before the agreement is signed.

How DeployOpen works on this

DeployOpen plans and implements warehouse sync for self-hosted Medplum inside your own cloud accounts and data platform, so the analytics path is documented, tested and owned by your team. Each engagement starts from a written scope that names the warehouse, the catalog, the data subset and the access rules before any pipeline is built.

How we scope

  • We confirm which warehouse, catalog and object storage your analytics team uses and whether Medplum is self-hosted or on Medplum Cloud.
  • We agree in writing which resource types, fields and redacted views are in scope, and which populations and date ranges they cover.
  • We confirm with Medplum the plan and feature requirements for the sync path, including Enterprise plan items, before build work is quoted.

How we build

  • We build the Iceberg table sync, catalog configuration and Snowflake or Redshift access path against your agreed scope.
  • We implement redacted views and Lake Formation or Snowflake sharing grants so analysts see only the fields your policy allows.
  • We test row counts, schema mapping, time travel reads and access grants against a non-production copy before any production cutover.

How we hand over

  • We document the data flow, table layout, catalog settings, grant model and redaction rules in a runbook your team can review.
  • We walk your data, security and compliance staff through the access controls and audit evidence the sync produces.
  • We deliver the configuration as code where your platform allows it, so changes can be reviewed and repeated by your own team.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer that covers changes to the sync path after go-live.
  • We retest access grants and redacted views after Medplum, Iceberg or warehouse version changes that affect the sync.
  • Support scope, response expectations and any service levels are set in the written agreement, so you can confirm them 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.