View a markdown version of this page

Integration with Amazon S3 Tables (Preview) - Amazon Aurora

Integration with Amazon S3 Tables (Preview)

Important

This is preview documentation for the Aurora PostgreSQL integration with Amazon S3 Tables. Before using this capability, review the Betas and Previews terms in the AWS Service Terms.

The Amazon Aurora PostgreSQL integration with Amazon S3 Tables replicates operational data from your Aurora PostgreSQL DB cluster to Amazon S3 Tables as Apache Iceberg tables, so you do not need to build or maintain ETL (extract, transform, and load) pipelines. You select the databases, schemas, tables, and columns to include, and the integration manages the rest. The integration also applies schema changes, such as added, dropped, or renamed columns, and adds any new tables that you create in a selected database or schema.

You can analyze the replicated data with Amazon Athena, Amazon Redshift, Amazon EMR, Amazon Aurora, or any Apache Iceberg-compatible engine. You control access to the replicated tables with IAM at the namespace and table levels, separately from your Aurora database permissions. You can also register the replicated tables in the AWS Glue Data Catalog for centralized metadata and governance.

When you create an integration, you specify an Aurora PostgreSQL DB cluster as the source and an Amazon S3 Tables table bucket as the target. The integration starts with an initial sync of your selected data and then uses change data capture (CDC) to continuously replicate inserts, updates, and deletes. Each change reaches the target after its source transaction commits, and each target table stays transactionally consistent. Across tables, the target is eventually consistent.

The following diagram illustrates an Aurora PostgreSQL integration with Amazon S3 Tables:

A client application writes to an Aurora DB cluster. The integration runs an initial full sync and then change data capture into Amazon S3 Tables, which stores the data as Apache Iceberg tables. Query engines read those tables for data analysts, including Amazon Athena, Amazon EMR, Amazon Redshift, AWS Glue, Aurora analytics, Apache Spark, and other Iceberg-compatible engines.

Benefits

The Aurora PostgreSQL integration with Amazon S3 Tables has the following benefits:

  • No pipelines to build or maintain: The integration provisions and manages the replication for you, including schema propagation and automatic scaling with your source write volume, so your engineering teams can focus on your applications instead of on pipeline infrastructure. You can monitor the replication lag, and the integration handles automatic resyncs if needed.

  • Near real-time replication to Apache Iceberg: The integration replicates each committed change on your Aurora source to the target table bucket within minutes and writes the data as native Apache Iceberg V2 tables. Because the data lands in open Iceberg format, you choose the analytics engine that fits your workload.

  • Minimal impact to the source database: Replication runs through Aurora's enhanced logical replication path, which captures changes with minimal impact on the performance of your primary DB instance.

  • Automatic schema evolution: Supported schema changes, such as adding or renaming a column, are applied to the target Iceberg tables automatically. For changes that cannot be applied in place, the integration automatically resyncs the affected table. For more information, see Schema changes for integrations with Amazon S3 Tables.

  • Data filtering: Choose which databases, schemas, tables, and columns to replicate. Exclude sensitive columns, such as columns that contain personally identifiable information (PII), so that they never leave your Aurora DB cluster.

Key concepts

The following terms are used throughout the pages about the integration with Amazon S3 Tables.

  • Integration: A fully managed resource that replicates data and schema from an Aurora DB cluster to an Amazon S3 Tables table bucket.

  • Source DB cluster: The Aurora DB cluster that data is replicated from.

  • Target table bucket: The Amazon S3 Tables table bucket that data is replicated to. A table bucket can receive data through more than one integration.

  • Namespace: A logical grouping of tables in a table bucket. The integration creates one namespace for each source database. For how namespaces are named, see Data organization for integrations with Amazon S3 Tables.

  • Target table: An Apache Iceberg table that the integration creates and Amazon RDS manages. For what you can do with it, see Managed target tables.

  • Data rules: The JSON rules that set the target prefix and choose which databases, schemas, tables, and columns the integration replicates. For more information, see Data rules for integrations with Amazon S3 Tables.

  • Target prefix: The TargetPrefix value in the data rules. The integration uses it as the prefix when it names the namespaces it creates in the table bucket. For allowed values and format, see Data rules syntax.

  • Full sync: A copy of the existing data in every table that the integration includes. A full sync runs when you create the integration and again whenever you change its data rules. "Full" refers to all included tables, not all tables in the source database.

  • Change data capture (CDC): The continuous replication of inserts, updates, deletes, and supported schema changes from the source to the target after the initial full sync.

  • Resync: A reload of tables of a running integration from the source. A resync starts automatically, for example after a schema change that cannot be applied in place, or when you run the resync-integration command. A full resync reloads every table that the integration includes. A partial resync reloads only the tables that are required. For more information, see Resyncing integrations with Amazon S3 Tables.

  • Integration status and table state: An integration has a status, for example active. Each replicated table has its own state, for example SYNCED. An integration can be active while one of its tables is in the FAILED state. For more information, see Integration statuses and Table states.

How replication works

The integration fully manages the replication. It copies data from your source DB cluster to your target table bucket and then keeps the target up to date. Replication scales automatically with your workload. Replication runs in two phases:

  • Initial full sync: When you create the integration, it copies and filters a snapshot of the existing data from the selected source tables to the target table bucket.

  • Change data capture (CDC): After the initial full sync, the integration captures ongoing inserts, updates, and deletes from the source through enhanced logical replication. The integration writes these changes to the target tables after each source transaction commits.

The integration writes complete source transactions to the target, so each target table is transactionally consistent with its source table. The changes that a transaction makes to a table become visible only after the entire transaction is durably written, so you never see a partial transaction in a table. A new or changed row typically appears in the target within minutes after the transaction commits on the source.

Across tables, the target is eventually consistent. The integration commits changes to each Apache Iceberg table independently, so a query that joins tables can reflect each table at a slightly different point in time. The difference is typically small and can grow while a table resyncs. For more information, see Resyncing integrations with Amazon S3 Tables.

Setting up and using an integration

To set up and use an integration with Amazon S3 Tables, complete the following steps:

  1. Set up the source DB cluster. For instructions, see Getting started with Aurora zero-ETL integrations.

  2. Set up the table bucket. For instructions, see Step 3c: Create a target Amazon S3 Tables table bucket.

  3. Write the data rules that choose the data and set the target prefix. For instructions, see Data rules for integrations with Amazon S3 Tables.

  4. Create the integration. For instructions, see Creating integrations with Amazon S3 Tables.

  5. Query the replicated data. For instructions, see Adding data to a source Aurora DB cluster and querying it in Amazon S3 Tables.

  6. Monitor the integration. For instructions, see Viewing and monitoring integrations with Amazon S3 Tables.

You control access to the replicated tables with AWS Identity and Access Management (IAM) at the namespace and table levels. For more information, see Namespace-level access control and Lake Formation. After you turn on the AWS analytics services integration for your table bucket (an Amazon S3 Tables setting, separate from this Aurora integration), the replicated tables appear in the AWS Glue Data Catalog for centralized metadata and governance. For instructions, see Turning on integration with AWS analytics services.

For the account-level quotas that this integration shares with zero-ETL integrations, see Quotas for Aurora zero-ETL integrations.

Pricing

During the preview, AWS does not charge for the ongoing replication of changes from your Aurora PostgreSQL DB cluster to Amazon S3 Tables. You pay standard rates for the AWS resources that the integration uses. These include Aurora export charges for the initial full sync of your tables, Aurora I/O and storage charges for the enhanced binlog that the integration turns on for your cluster, and Amazon S3 Tables charges for storage and compaction of the replicated tables. For current pricing, see Amazon Aurora pricing and Amazon S3 pricing.