On this page
On 2 December 2026, in the Data and AI keynote at re:Invent, AWS announced a preview of the Aurora PostgreSQL integration with Amazon S3 Tables. You point an Aurora cluster at a table bucket, and Aurora keeps a set of Apache Iceberg tables in step with your operational tables: inserts, updates, deletes and schema changes. It replaces the change data capture pipeline that most data platforms build by hand.
The announcement says changes arrive “within minutes” and that schema changes are handled. I ran it in Ireland for two hours to put numbers and edges on both. Rows committed in Aurora were readable in the Iceberg table after 55 to 119 seconds, with a median of 86. Every commit, plain inserts included, writes equality-delete files, and that decides which engines can read the tables: DuckDB returned correct results throughout, and PyIceberg refused the table until compaction had run. Two of six schema changes reloaded a million-row table, and each left the target twelve minutes stale but readable.

Test Setup
One script, run in steps from AWS CloudShell in eu-west-1 with boto3 1.44.18. It creates an Aurora PostgreSQL 18.6 cluster with one db.r6g.large instance, a table bucket, and an integration between them. The source database has seven tables of made-up data:
| Table | Rows | Purpose |
|---|---|---|
orders | 1,000,000 (95 MB) | Updates, deletes and schema changes on a table of some size |
customers | 100,000 | Has a national_id column that a data rule excludes |
lag_probe | Empty at the start | Timestamped inserts for the lag test |
ledger | 1,000 | Small table for the quick schema changes |
audit_no_key | 10 | No primary key |
readings and its partition | 100 | A partitioned table |
To see what was replicated I used three views of the target: the Iceberg metadata file read straight from S3, DuckDB 2.0.1 with its Iceberg extension attached to the table bucket, and PyIceberg 0.12.0 on the S3 Tables Iceberg REST endpoint. I did not use Athena, because that needs the account-level Glue catalog integration and I wanted the test to leave the account as it found it.
Integration Setup
The cluster needs four parameters in its parameter group: rds.logical_replication=1, aurora.enhanced_logical_replication=1, and the aurora.logical_replication_backup and aurora.logical_replication_globaldb parameters set to 0. Attached at creation, they were on when the instance came up, with no reboot. The integration itself is one call with a set of ordered data rules. This is the call from the script, with comments added:
rules = [
# Start from nothing, and name the prefix for the target namespaces.
{"Database": "*", "Schema": "*", "Table": "*",
"Properties": {"TargetPrefix": "lab", "ExcludeColumns": ["*"]}},
# Include every table in one schema of one database.
{"Database": "appdb", "Schema": "public", "Table": "*",
"Properties": {"IncludeColumns": ["*"]}},
# Last, so that nothing above can add it back: the column that must not leave.
{"Database": "*", "Schema": "*", "Table": "*",
"Properties": {"ExcludeColumns": ["national_id"]}},
]
rds.create_integration(
SourceArn=cluster_arn, TargetArn=table_bucket_arn,
IntegrationName="aurora-s3t-lab", DataRules=json.dumps(rules))Rule order matters. Aurora puts an include-everything rule in front of yours, each rule can override the ones before it, and a later IncludeColumns: ["*"] silently brings an excluded column back. Keep the exclusion of sensitive columns as the last rule.
The table bucket needs a resource policy that lets the service principal export.rds.amazonaws.com create and write tables. The setup guide describes that policy in prose, two statements conditioned on the source cluster, but the JSON itself was not on the page, or on six related pages, when I read them on 3 December. This is the policy I wrote from the description. The integration accepted it, and the run produced no access error.
condition = {"StringEquals": {"aws:SourceAccount": account_id},
"ArnEquals": {"aws:SourceArn": cluster_arn}}
policy = {"Version": "2012-10-17", "Statement": [
{"Sid": "IntegrationBucketAccess", "Effect": "Allow",
"Principal": {"Service": "export.rds.amazonaws.com"},
"Action": ["s3tables:GetTableBucket", "s3tables:CreateNamespace", "s3tables:GetNamespace",
"s3tables:ListNamespaces", "s3tables:DeleteNamespace",
"s3tables:CreateTable", "s3tables:ListTables"],
"Resource": table_bucket_arn, "Condition": condition},
{"Sid": "IntegrationTableAccess", "Effect": "Allow",
"Principal": {"Service": "export.rds.amazonaws.com"},
"Action": ["s3tables:GetTable", "s3tables:GetTableData", "s3tables:PutTableData",
"s3tables:GetTableMetadataLocation", "s3tables:UpdateTableMetadataLocation",
"s3tables:DeleteTable", "s3tables:RenameTable"],
"Resource": f"{table_bucket_arn}/table/*", "Condition": condition}]}
s3tables.put_table_bucket_policy(tableBucketARN=table_bucket_arn, resourcePolicy=json.dumps(policy))It may grant more than the service needs. When AWS publishes the reference policy, use that one.
First Synchronisation
The first sync copies a snapshot of the selected tables. The tutorial says to expect 8 to 11 minutes for a three-row sample table.
| Event | Seconds after the create call |
|---|---|
Integration status creating | 1 |
| All three seeded tables complete in the target | 669 |
Integration status active | 730 |
So 1.1 million rows took about the same time as three. The first sync is dominated by a fixed cost, at least at this size. The target had a namespace lab_appdb with tables named public_orders, public_customers and so on, and a second namespace, integrations_metadata, holding a status table.
- File count is fixed, not proportional. The million-row table arrived as 64 Parquet files, the 100,000-row table as 64, and the 1,000-row table as 28.
- The excluded column never arrived. The customers table in the target has five columns;
national_idis not in the schema. - Two tables were skipped. The table with no primary key and the partitioned table have no target table at all. The status table records why:
SOURCE_TABLE_MISSING_PRIMARY_KEYandSOURCE_UNSUPPORTED_TABLE_TYPE.
Staging and Main Branches
My first lag measurement was wrong, and the reason is worth knowing before you build any monitoring of your own. Each target table has two Iceberg branches, staging and main. The integration commits to staging first and then moves main. A query engine reads main. If you watch the snapshot list in the metadata file, as I did at first, you see staging commits that no reader can see yet.
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#FFF3E0','primaryTextColor':'#232F3E','primaryBorderColor':'#FF9900','lineColor':'#232F3E','clusterBkg':'#F8FAFC','clusterBorder':'#CBD5E1','edgeLabelBackground':'#FFFFFF','nodeTextColor':'#232F3E'}}}%%
flowchart TD
A["Aurora PostgreSQL:
transaction commits"] --> B["Enhanced logical
replication"]
B --> C["Integration writes Parquet
and equality-delete files"]
C --> D["Commit to the
staging branch"]
D --> E["Main branch advanced,
about once a minute"]
E --> F["Query engines
read main"]
E --> G["S3 Tables compaction
rewrites files later"]
classDef compute fill:#FFF3E0,stroke:#FF9900,stroke-width:2px,color:#232F3E
classDef db fill:#EBF8FF,stroke:#0073BB,stroke-width:2px,color:#004C74
classDef store fill:#F0FFF4,stroke:#1D8102,stroke-width:2px,color:#145202
class A,B db
class C compute
class D,E,G store
class F computeI saw the difference directly. Twenty seconds after a snapshot containing my updates appeared in the metadata, both DuckDB and PyIceberg still returned the old rows. They were right: main had not moved. Snapshot summaries mislead in a second way too. Because every insert is written with a matching equality delete, added-records and total-records count rows more than once: 12,000 inserted rows showed as 17,700 added records. Count rows with a query, not from snapshot summaries.
Replication Lag
With that corrected, I measured lag the way a consumer experiences it. The script committed 100 rows a second for three minutes, 180 transactions, while DuckDB polled the target on a new connection each time and recorded the highest row ID it could read.
| Commit to readable | Seconds |
|---|---|
| Minimum | 55.3 |
| Median | 86.4 |
| 95th percentile | 113.0 |
| Maximum | 119.3 |
- The cadence is about one minute. Visible data changed four times during the run, 59 to 111 seconds apart, about 6,000 rows at a time. Lag is set by the publish cycle, not by the load I applied.
- The AWS metric agreed.
ReplicationLagMillisecondsfromdescribe-integrationsread 105,038 at the end of this run and 60,005 during an earlier one. - Nothing was lost. At the end the source had 530,000 rows in that table and DuckDB read 530,000.
- A large transaction did not change the picture. In the earlier run, AWS reported a lag of 109 seconds after a single 500,000-row insert.
- Updates took the same path. After 2,000 updates and 500 deletes, the main branch moved 98 seconds after the commit.
One to two minutes, then. That is fine for dashboards and feature tables and for most reporting. It is not a basis for anything that must read its own writes.
Equality Deletes and Reader Compatibility
The documentation says updates and deletes are written as Iceberg v2 equality-delete files, and warns that some engines cannot read them. Two details from the test make that warning broader than it sounds.
First, inserts carry them too. After the lag test, the probe table had 530,000 rows and 530,000 equality deletes, one per row, in 40 delete files beside 40 data files. The integration writes every change as an upsert. So a table that only ever receives inserts still contains delete files.
Second, the two readers I tried behave very differently while those files are present. After 2,000 updates and 500 deletes on the orders table:
| Reader | Result while main held equality deletes |
|---|---|
| DuckDB 2.0.1, Iceberg extension | Correct: 995,500 rows, 2,000 with the new status, matching the source |
| PyIceberg 0.12.0 | ValueError: PyIceberg does not yet support equality deletes |
| Athena, EMR, Redshift | Supported according to the documentation; not tested here |
Check every consumer of these tables for Iceberg v2 equality-delete support before you depend on the integration. An engine without it will work on a freshly compacted table and fail a minute later when the next commit lands. PyIceberg at least fails with a clear error. The status table that the integration maintains has the same property: PyIceberg could not read it either.
Compaction Timing
S3 Tables compaction rewrites the data files with the deletes applied, after which any reader works. I saw it happen once: about three and a half minutes after a batch of updates, four replace snapshots appeared, the equality-delete count went to zero, and PyIceberg read the correct 996,000 rows.
The next time it did not come. After the second batch of changes the delete files were still on the main branch 15 minutes later, when I stopped waiting. The lag probe table, which received 530,000 inserts, had not been compacted 40 minutes after its first rows. Compaction is a background service with its own thresholds. Do not design a consumer around the gap between a commit and the next compaction.
Schema Changes
Six changes on the source, in order. The documentation sorts schema changes into three classes, and each one I tried landed in the class it describes.
| Change on the source | Documented class | Observed in the target |
|---|---|---|
| Add a nullable column | Applied in place | Column present after 56 s; same table |
| Rename that column | Applied in place | New name after 61 s; same table |
integer to bigint on a 995,500-row table | Applied in place | Column type long after 111 s; no reload |
Add a NOT NULL column with a default | Automatic resync | Status syncing; table contents replaced about 12.6 minutes later |
text to integer | Automatic resync | Status syncing; new type visible within 12.5 minutes; status active again at 17 minutes |
| Drop the primary key | Table fails | Table FAILED within three minutes; target table left as it was |
The in-place changes took about one publish cycle each. The resyncs are the ones to plan for.
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#FFF3E0','primaryTextColor':'#232F3E','primaryBorderColor':'#FF9900','lineColor':'#232F3E','signalColor':'#0073BB','signalTextColor':'#0F172A','actorBkg':'#FFF3E0','actorBorder':'#FF9900','actorTextColor':'#232F3E','noteBkgColor':'#FFF8E7','noteBorderColor':'#FF9900','noteTextColor':'#232F3E'}}}%%
sequenceDiagram
participant S as Aurora source
participant I as Integration
participant M as Target table, main branch
participant R as Reader
S->>I: ALTER that cannot be applied in place
I->>I: Status syncing, table reloaded from the source
R->>M: Query during the resync
M-->>R: Previous contents, complete but stale
I->>M: Overwrite, about 12 minutes later
R->>M: Query after the resync
M-->>R: New schema, all rowsDuring the second resync I had DuckDB read the table every 15 seconds. It returned all 995,501 rows on every read: with the old column type at 235 seconds, and with the new one at 749 seconds. There was no moment when the table was empty or half loaded. The swap is a single overwrite of the same table, and the status table marked it RESYNC_COMPLETE roughly twelve and a half minutes after the ALTER.
So a resync costs freshness, not availability. For twelve minutes that table received no changes, and readers saw data from before the ALTER. A resync of one million-row table took about as long as the first sync of the whole database, which fits the fixed cost seen there. I did not test a larger table, and I would expect the time to grow at some size.
Dropping the primary key was the unforgiving one. The table went to FAILED with reason SOURCE_TABLE_MISSING_PRIMARY_KEY, the integration stayed active, and the target table stayed in place with its 1,002 rows while the source moved on to 1,003. Nothing in a query against that table tells you it has stopped.
Monitoring Signals
| Signal | Where | What it showed |
|---|---|---|
| Integration status | describe-integrations | active throughout, except syncing during a resync. It stayed active with three failed tables |
ReplicationLagMilliseconds | Same call, under Statistics | 60,005 to 178,027 outside resyncs; 294,880 just after one |
TablesErrored | Same call | 2 after the first sync, 3 after I dropped a primary key |
| Per-table status | Iceberg table in integrations_metadata | State and reason for every source table |
Alarm on TablesErrored rising, not on the integration status, because one failed table does not change the status. And read the status table with an engine that supports equality deletes. Through DuckDB it looked like this:
appdb.public.audit_no_key | FAILED | SOURCE_TABLE_MISSING_PRIMARY_KEY
appdb.public.customers | SYNCED |
appdb.public.lag_probe | SYNCED |
appdb.public.ledger | FAILED | SOURCE_TABLE_MISSING_PRIMARY_KEY
appdb.public.orders | SYNCED | RESYNC_COMPLETE
appdb.public.readings | FAILED | SOURCE_UNSUPPORTED_TABLE_TYPEPersonal Data and Column Rules
The column rule did what it says: national_id was absent from the target schema from the first sync onward and after both resyncs. For regulated data, three points from the documentation belong next to that result. I did not test them, and they are the ones that would catch a team out.
- Masking is not replicated. A dynamic masking policy made with
pg_columnmaskis not applied to replicated data. A masked column arrives in the lake unmasked unless a data rule excludes it. - Exclusion is not retroactive. If you exclude a column after it has replicated, earlier Iceberg snapshots still contain it.
- Permissions change at the boundary. Access to the Iceberg tables is governed by IAM and, if you use it, Lake Formation. Database roles and row-level security do not follow the data.
Treat the data rules as part of your record of processing: they decide which personal data leaves the database, and they should be reviewed like a schema migration.
Design Guidance
- Give every table a primary key before you start, and never drop one on a replicated table. Tables without one are skipped without stopping the integration.
- Plan for partitioned tables separately. They are not replicated in this preview.
- Classify schema changes in review. A new column with a default or
NOT NULL, or an incompatible type change, means a twelve-minute freeze of that table in the lake, or longer for larger tables. Adding the column as nullable and backfilling avoids the resync. - Qualify your readers. Run each consuming engine against a table that has just received changes, not against a quiet one.
- Measure lag on the main branch, with a query or with the AWS metric, not from snapshot timestamps.
- Expect many small files. A 1,000-row table arrived as 28 files, and each publish cycle added four data files and four delete files to a table. Compaction is what keeps this in check, and it has a price per object and per gigabyte.
Comparison with PutRows and Hand-Built Pipelines
Two days ago I tested S3 Tables PutRows, the other new way to get rows into an Iceberg table. The two solve different problems. PutRows is for events an application emits: append only, readable in about 28 seconds in my test, and the producer handles errors. The Aurora integration is for the state of an operational database: it carries updates, deletes and schema changes, takes one to two minutes, and needs no code in the application.
Against a pipeline you build yourself, usually Debezium or AWS DMS into a stream and then a writer, the integration removes the connector, the stream, the writer and their operations. What you give up in this preview is control: no row-level filter, no transformation, no choice of delete format, and a resync you cannot schedule. For many platforms that is a good trade. If your consumers cannot read equality deletes, it is not available to you yet.
Recommendation
Pilot it on one schema that already feeds your lake, next to the pipeline you run today, and compare lag, cost and the number of things on your on-call list. It is a preview, so keep the existing pipeline until general availability and a service level agreement.
Before the pilot, settle three things: every consuming engine reads equality deletes, every replicated table has a primary key, and the data rules have been reviewed by whoever answers for personal data. During it, alarm on TablesErrored and on ReplicationLagMilliseconds, and rehearse one schema change that forces a resync so that the twelve minutes are not a surprise in production.
A note on testing: I ran the script in steps from AWS CloudShell in eu-west-1 on the evening of 3 December 2026, with boto3 1.44.18, DuckDB 2.0.1 and PyIceberg 0.12.0, against one Aurora PostgreSQL 18.6 cluster on a db.r6g.large instance. Every figure is from a single run. My first lag step measured staging commits and counted rows from snapshot summaries, both wrong, and I replaced it with the reader-based measurement reported here. The schema step stopped once when CloudShell failed to refresh its credentials; I read the outcome of the change in progress by hand and ran the remaining two from a second step. The resync time for the first of the two resyncs is from snapshot timestamps and the script start time, so it is good to a few seconds, not exact. I did not test Athena, EMR or Redshift as readers, masking policies, tables larger than a million rows, sustained heavy write load, a second integration on the same bucket, or what the first sync and the resyncs cost; the preview does not charge for ongoing replication. The table bucket policy is my own, written from the documentation’s description. Everything the test created was deleted afterwards.
The complete sample for this article is on GitHub: nithinmohantk/blog-samples-working-repo/aurora-s3-tables-replication-tested. Clone it with git clone https://github.com/nithinmohantk/blog-samples-working-repo.git and open the aurora-s3-tables-replication-tested folder. Its README says how to run it and what has been verified.
References & Further Reading
- → Aurora PostgreSQL now supports integration with Amazon S3 Tables (Preview)— The AWS announcement, 2 December 2026
- → Integration with Amazon S3 Tables (Preview)— Aurora User Guide: overview, consistency, resyncs and preview pricing
- → Tutorial for the integration— Aurora User Guide: the end-to-end walkthrough
- → Data rules for integrations with Amazon S3 Tables— Aurora User Guide: rule order, column filters and masking
- → Schema changes for integrations with Amazon S3 Tables— Aurora User Guide: which changes apply in place, resync or fail
- → Monitoring integrations with Amazon S3 Tables— Aurora User Guide: metrics, events and the status table
- → Limitations for integrations— Aurora User Guide: primary keys, partitioned tables and equality deletes
- → Getting started with Aurora integrations— Aurora User Guide: parameters and the table bucket policy description
- → AWS helps agents do more with your data— AWS News Blog, 2 December 2026
- → S3 Tables PutRows, Tested— The earlier article on direct row ingestion into S3 Tables
- → Sample code for this article— The lab script and its recorded output
Discover more from C4: Container, Code, Cloud & Context
Subscribe to get the latest posts sent to your email.