AWS Database Migration Service (DMS) can’t write to Snowflake. Snowflake isn’t on the list of DMS target endpoints. Teams that want AWS DMS to Snowflake replication build a chain instead: a DMS task writes full-load and change data capture (CDC) files to Amazon S3, Snowpipe loads each new file into a staging table, and a scheduled MERGE applies the inserts, updates, and deletes to the final table.
Key Takeaways
AWS DMS has no Snowflake target endpoint. The common pipeline writes DMS files to S3, loads them with Snowpipe, and applies them with a MERGE the team writes and maintains.
DMS leaves the operation column out of full-load files by default, and it writes no schema-change record to S3 when a source column is added, dropped, or renamed. Set IncludeOpForFullLoad, and plan every source schema change as a coordinated change to the file format, pipe, and MERGE.
Snowpipe doesn't guarantee the order in which files load. The MERGE needs a verified source-ordering key and has to compare each change with the ordering values stored in the final table.
A pipe can stop loading without sending an error notification. Alert on how long ago it last loaded a file, and know the 7-day and 14-day windows for recovering missed files.
In a labeled example, the compute that runs the MERGE costs more than DMS, S3, and Snowpipe combined.
For teams that need ongoing CDC replication to Snowflake without managing the S3, Snowpipe, and MERGE workflow, managed alternatives such as Estuary provide a more direct integration path.
Why Teams Use AWS DMS to Replicate Data to Snowflake
DMS is already in the AWS console for teams that run Amazon RDS or Aurora, and it uses the same IAM roles, networking, and AWS bill as the rest of their stack. One task can copy every existing row and then keep reading changes from the source’s log. It bills by the hour for a replication instance, or by capacity unit on DMS Serverless; DMS itself doesn’t charge per row or per gigabyte. S3 is a supported target for both.
AWS’s documentation says “There are no SLAs for CDC latency” (AWS DMS CDC), and its best practices advise against using DMS CDC “for use cases that require sub-second or guaranteed low-latency replication” (best practices).
How the AWS DMS to Snowflake Pipeline Works: S3, Snowpipe, and MERGE

Configure AWS DMS for Full Load and CDC
A DMS task connects a source endpoint (for example, RDS for PostgreSQL or Aurora MySQL) to an S3 target endpoint. With the full-load-and-cdc migration type, the task copies each table, applies the changes it cached while that table was loading, and then replicates changes as they commit. The source needs log-based CDC enabled first: logical replication on PostgreSQL, or row-based binary logging on MySQL. Our PostgreSQL and MySQL CDC guides cover that setup.
How AWS DMS Writes Full-Load and CDC Files to S3
DMS writes one folder per table, under schema_name/table_name/ (S3 target settings). Full-load files are named with a hexadecimal counter, such as LOAD00000001.csv. CDC files are named with a timestamp, such as 20141029-1134010000.csv. CSV is the default format, and Parquet is the alternative. The bucket has to be in the same AWS Region as the replication instance, and AWS says not to enable S3 versioning on it, or to expire old versions with lifecycle rules if you need versioning.
In a CDC file, the first column is the operation: I for insert, U for update, D for delete. An update row carries the row’s values after the change. Full-load files carry no operation column unless IncludeOpForFullLoad is true. By default, then, LOAD files and CDC files in the same folder have a different number of columns.
The MERGE pattern below orders changes with two settings. TimestampColumnName adds a column that holds the source commit time for CDC rows and the transfer time for full-load rows. UseTaskStartTimeForFullLoadTimestamp, set to true, stamps full-load rows with the task’s start time instead, which AWS says makes full-load timestamps “sortable” with CDC timestamps. Without it, a full-load row read before a concurrent update can carry a later timestamp than that update, and a latest-row MERGE keeps the stale value.
DMS writes a CDC file when 60 seconds have passed (CdcMaxBatchInterval) or 32,000 KB has accumulated (CdcMinFileSize), whichever comes first. A large transaction stays in one file, and that file “can exceed the cdcMinFileSize and cdcMaxBatchInterval” (AWS re:Post).
Load AWS DMS Files into Snowflake Using Snowpipe
Snowflake reads the bucket through a storage integration and an external stage. A pipe created with AUTO_INGEST = TRUE loads each file when an S3 event notification reaches a queue that Snowflake manages (Snowpipe auto-ingest for S3). The notification should cover all object-create events; a notification that lists individual event types without s3:ObjectCreated:CompleteMultipartUpload misses files uploaded in parts. Our Amazon S3 to Snowflake guide walks through the stage and pipe setup.
The pipe copies each row into a staging table, along with METADATA$FILENAME and METADATA$FILE_ROW_NUMBER. The file name and row number give the MERGE a tie-breaker for changes that share a commit time. The file name also identifies a file’s rows for a reload.
Apply CDC Changes in Snowflake Using Streams, Tasks, and MERGE
An append-only stream on the staging table tracks new rows; Snowflake describes that type as “notably more performant than a standard stream” for insert-only loads (streams). Our Snowflake CDC guide covers streams, tasks, and staleness. A task that runs when SYSTEM$STREAM_HAS_DATA returns true consumes the stream with a MERGE.
The example below is an illustrative pattern, not a tested script. It assumes:
Full-load and CDC rows have the same columns, with IncludeOpForFullLoad set or the LOAD files loaded separately. A headerless CSV row that has already shifted by one column can’t be repaired in the MERGE.
Every row has a timestamp: the commit time for CDC rows and a baseline time for full-load rows, from TimestampColumnName and UseTaskStartTimeForFullLoadTimestamp.
The operation is I, U, or D, or empty only on full-load rows.
The ordering columns are never NULL, src_row is numeric, and the final table’s non-key columns accept NULL, because a delete row can carry only the key.
The ordering columns reproduce the order of changes at the source.
AWS documents commit order within Parquet files and transaction order with its PreserveTransactions setting, but not row order in per-table CSV files. Confirm the ordering for your configuration. If your task can write the $AR_H_CHANGE_SEQ header column to S3, use it in place of the file name and row number in both the QUALIFY and the comparison. AWS documents it as empty during full load. Give full-load rows a baseline value. The final table stores the ordering columns and an is_deleted flag:
Within a batch, the QUALIFY keeps the latest change per key. Without it, several source rows that qualify to update the same target row can fail the MERGE under Snowflake’s default settings, and several rows for a key not yet in the table can insert it more than once.
Across batches, the comparison against the stored commit timestamp, file name, and row number stops a change that loads late from overwriting a newer one, including a change with the same timestamp. Missing ordering values can stop the comparison from selecting a newer change, and a NULL stored timestamp blocks every later update through this guard.
A delete, matched on the primary key alone, sets is_deleted and keeps the row and its ordering columns. A late, older insert for that key then fails the comparison instead of bringing the row back. Reports read rows WHERE is_deleted = FALSE. If you remove flagged rows later, do it only once no older change for those keys can still arrive.
Common AWS DMS to Snowflake Issues and Limitations
Table 1 lists the failure points specific to the S3 and Snowpipe route. Several of them lose or delay data without raising an error. General DMS problems are covered in AWS DMS CDC limitations.
AWS documents four of them on its S3 target page. When a source column is added, dropped, or renamed, “no ALTER statement is recorded in the target S3 bucket,” and later files use the new structure. A source TRUNCATE “removes all files and corresponding table folders” for that table from the bucket, unless the task’s DDL handling settings turn that off. Batch apply on an S3 target “might result in loss of data.” And during a full load under heavy writes, DMS “may write duplicate records to the S3 bucket” (S3 target limitations).
By default, Snowpipe skips a file that fails to load, then counts it as processed. A corrected copy with the same name is ignored for 14 days, and ALTER PIPE … REFRESH doesn’t queue it again (managing Snowpipe). Because the MERGE orders by file name, a reload has to carry the original file name and row numbers into the ordering columns. Under a new name, an older change with the same timestamp can sort after a newer one. If wrong values have already reached the final table, a corrected reload with the same ordering values is ignored, and the affected keys need a repair. Error notifications don’t cover files that never reach Snowpipe. Snowflake recommends an alert that checks how long ago the pipe last loaded a file (Snowpipe errors).
A primary key change has to reach the final table as a delete of the old key and an insert of the new one, or the old row stays. Tests of primary key changes in other CDC pipelines show destinations keeping both rows when the delete isn’t applied. Whether the MERGE can do this depends on how DMS writes a key change to S3, which the DMS S3 target documentation doesn’t describe. Test key changes, key swaps, and key reuse.
Table 1: Failure points in the AWS DMS to Snowflake pipeline
Hop | What breaks | How you notice | How you fix it |
|---|---|---|---|
1. DMS full load | Duplicate rows written during a full load under heavy writes, or after an abrupt stop and resume with DO_NOTHING | Check staging for full-load rows repeated with identical values | Deduplicate in the MERGE; run the full load when write volume is low |
1. DMS task | Large objects truncated in limited LOB mode, the only LOB mode an S3 target supports | A warning in the task log, if logging is on | Size the maximum LOB setting to the data |
1. DMS task | Batch apply enabled on an S3 target | Missing rows; AWS warns it “might result in loss of data” | Leave batch apply off |
2. S3 files | Full-load files with no operation column | Column-count errors in the copy history, or values shifted one column under a SELECT load | Set IncludeOpForFullLoad, or load LOAD files separately |
2. S3 files | A source column added, dropped, or renamed, with no record of it in S3 | Column-count errors, or nulls in new columns | Parquet with schema evolution adds new columns to staging; add them to the final table and the MERGE yourself, and change the pipe and MERGE together for drops and renames |
2. S3 files | A source TRUNCATE deletes the table’s files | Check whether Snowflake still holds rows the source truncated | Set HandleSourceTableTruncated to match how you want truncates handled, and apply source truncates in Snowflake yourself |
2. S3 files | Two tasks replicating the same table to one bucket write the same file | Check for interleaved rows from two tasks | Point each task at a different bucket |
3. Notification | Another consumer already has a notification on the prefix, or only single-part uploads are notified | The pipe never loads; SYSTEM$PIPE_STATUS shows an old lastReceivedMessageTimestamp | Route events through SNS or EventBridge; notify on all object-create events |
4. Snowpipe | A file fails and is skipped; a corrected file with the same name is ignored for 14 days | Load failed in COPY_HISTORY; error notifications | Reload with a manual COPY INTO that writes the original file name and row numbers to the ordering columns; repair keys that already took wrong values |
4. Snowpipe | Files missed for more than 7 days, or a pipe paused for more than 14 days | Gaps in staging; REFRESH doesn’t find the files | Load older files with COPY INTO; resume a stale pipe with SYSTEM$PIPE_FORCE_RESUME and reload what it missed |
4. Snowpipe | Notifications stop arriving, and no file fails | No error notification | Alert when the pipe’s lastIngestedTimestamp is older than the source’s normal quiet period, and track the final table’s latest applied change separately |
5. Stream and task | The stream goes stale, or the task suspends after 10 consecutive failures | Stream marked stale; task history | Consume the stream inside its retention window; alert on task failures |
6. MERGE | Two changes to one key in a batch, or an older file loaded after a newer one | A nondeterministic-merge error, or stale values | Deduplicate on commit timestamp, file, and row; compare with the same columns stored in the target |
6. MERGE | Deletes matched on more than the key | Deleted rows stay in the table | Match deletes on the primary key alone |
How Much Does AWS DMS to Snowflake Cost?
Table 2 lists the pipeline’s cost lines, DMS among them, with their published rates. The rates are list prices for the US East (N. Virginia) Region, checked on 11 November 2026 against AWS DMS pricing, Amazon S3 pricing, and Snowflake’s Service Consumption Table. For how other pricing models compare, see real-time data ingestion cost.
Table 2: Cost lines for the AWS DMS to Snowflake pipeline
Cost line | How it’s billed | Published rate (US East, checked 11 Nov 2026) | What drives it |
|---|---|---|---|
DMS replication instance | Per instance hour; Multi-AZ doubles it | dms.t3.medium $0.0745; dms.r6i.large $0.176 ($0.353 Multi-AZ) | Instance size and hours, whether or not changes arrive |
DMS Serverless (alternative) | Per DMS capacity unit (DCU) hour | $0.0819 per DCU-hour | Capacity used, from 1 to 384 DCUs |
S3 storage | Per GB-month | $0.023 per GB-month | How long files are kept |
S3 requests | Per request | $0.005 per 1,000 PUTs; $0.004 per 10,000 GETs | Files written: about one a minute per active table at the default |
Snowpipe | Per GB loaded | 0.0037 credits per GB; CSV billed uncompressed | Data volume |
MERGE on a warehouse | Per second, 60-second minimum per resume | XS warehouse 1 credit per hour | How often the warehouse wakes and how long it stays up |
MERGE as a serverless task | Per compute-hour | 0.9 credits per compute-hour | Run time of each MERGE and the compute size Snowflake allocates |
Snowflake storage | Per TB-month | $23 per TB-month | Staging and final tables, Time Travel |
Engineering time | Staff hours | Your loaded hourly rate | Building and running the MERGE, monitoring, and recovery |
Credits cost $2, $3, or $4 on demand for Standard, Enterprise, and Business Critical editions. SSE-KMS encryption adds AWS KMS request charges, and a Snowflake account in another Region can add S3 data transfer charges.
A labeled example. These are illustrative assumptions, not a quote:
One RDS for PostgreSQL source with 20 tables changing continuously, each writing a CDC file a minute.
30 GB of uncompressed change data a month in CSV, kept in S3 for a month.
A dms.r6i.large Multi-AZ replication instance; CloudWatch logging off.
One PUT and one GET per file.
200 GB of Snowflake tables, Enterprise edition, and a 730-hour month.
Each table’s MERGE runs for 10 seconds on compute equivalent to an XS warehouse.
The results:
The replication instance comes to $257.69. S3 requests for 876,000 files come to $4.73, S3 storage to $0.69, Snowpipe to $0.33, and Snowflake storage to $4.60.
With one MERGE task per table every 5 minutes on a shared XS warehouse, the warehouse never suspends, because its AUTO_SUSPEND default of 600 seconds is longer than the 5-minute gap between runs. That’s 730 credits, or $2,190, for a monthly total of about $2,458.
Serverless tasks every 5 minutes come to 438 credits, $1,314 before Cloud Services charges, for a total of about $1,582. The real figure depends on the compute size Snowflake chooses.
Merging every 30 minutes on the same warehouse with a 60-second AUTO_SUSPEND, with the 20 merges run one after another, keeps it running about 260 seconds a cycle: 200 seconds of merges, then a minute before it suspends. That comes to $316, for a total of about $584. The saving comes from two changes together: merging every 30 minutes instead of every 5, and suspending after a minute of idle time instead of 10.
The schedule sets how long changes wait in staging: up to about 5 or 30 minutes in these options. End-to-end freshness also includes DMS capture and file creation, Snowpipe loading, which Snowflake doesn’t guarantee a latency for, and the MERGE itself.
Engineering time isn’t in these totals. To add it, multiply the hours a month your team spends on the chain by your loaded rate.
When Is AWS DMS a Good Fit for Snowflake?
The S3 route is a reasonable choice when:
The job is a one-time migration, with a full load and a short CDC tail before cutover.
The same files also feed AWS services, such as Athena or a data lake, alongside Snowflake.
Change volume is low, and data an hour old is acceptable.
The team is prepared to own the MERGE, the monitoring, and recovery from skipped files and schema changes.
It’s a weaker fit when freshness targets are tight, because neither DMS CDC nor Snowpipe guarantees latency and each hop adds its own delay, when many tables change continuously, or when source schemas change often.
Alternatives to AWS DMS for Snowflake
Snowflake Openflow is Snowflake’s managed ingestion service, with CDC connectors for PostgreSQL, MySQL, SQL Server, and Oracle. It keeps ingestion under Snowflake’s governance and billing, with no third-party vendor. It lands changes in journal tables and merges them into Snowflake tables, and its cost includes the runtime’s compute as well as ingestion and the warehouse for the merge. AWS DMS vs Snowflake Openflow compares the two. Managed CDC tools that write to Snowflake directly remove the S3 hop; AWS DMS alternatives compares eight of them by use case.
How Estuary Replicates Data to Snowflake Using CDC
Estuary captures changes from the source database’s log and writes them to Snowflake through its Snowflake materialization, with no S3 bucket of your own, event notifications, or MERGE for your team to maintain. Standard bindings, the default, keep one row per key. The connector stages each transaction’s changes in an internal stage and applies them to the table in a transaction, on a sync schedule that defaults to 30 minutes and can run continuously. Lengthening the schedule reduces how often the warehouse runs. Delta-updates bindings append changes instead and can use Snowpipe Streaming, which requires key-pair authentication. Deletes are soft by default and can be set to hard deletes. For the cost difference between streaming and file-based ingestion, see reducing Snowflake ingestion costs, and for setup, the Snowflake destination page.
How to Replace AWS DMS in a Snowflake Pipeline
Run the new pipeline beside DMS into separate tables, compare both at the same source point once each has applied every change up to it, cut consumers over, and keep the DMS task until the rollback window closes. The new pipeline starts with its own backfill, because a new tool doesn’t pick up from DMS’s position. The AWS DMS to Estuary migration guide covers the steps, and migrating a production CDC pipeline covers validation and rollback.
Final Takeaway
In the AWS DMS to Snowflake pipeline, DMS’s part ends at the S3 bucket. Snowflake runs Snowpipe and its queue, and the team builds and runs the rest: handling full-load files without an operation column, ordering changes, the MERGE, recovery from skipped or missed files, and the compute that runs the apply.
The route suits a one-time migration, low change volume, or files that also feed AWS services. When freshness targets are tight, compare its measured end-to-end latency with tools that write to Snowflake directly.
Replicate Database Changes to Snowflake with Estuary
Estuary helps teams capture database changes and deliver them to Snowflake without an S3 or MERGE layer to run. Try Estuary free to stream your database to Snowflake, see the Snowflake destination page, or read the AWS DMS to Estuary migration guide.















