Best practices for integrations with Amazon S3 Tables
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
Follow these practices to keep your Aurora PostgreSQL integration with Amazon S3 Tables reliable, secure, and efficient, and to get consistent query results. Each practice links to a topic with more details.
-
Set the enhanced logical replication parameters once, before you create the integration, and do not change them while the integration is active. Enhanced logical replication can increase I/O operations per second (IOPS) on the source DB cluster. For more information, see Step 1: Create a custom DB cluster parameter group.
-
Replicate only the databases, schemas, tables, and columns that you need. A smaller scope reduces the time that a full sync (a copy of all existing data) takes, and reduces the amount of data written to the target table bucket in Amazon S3 Tables. For more information, see Data rules for integrations with Amazon S3 Tables.
-
Exclude sensitive columns when you create the integration, so that they never reach the target. For more information, see Excluding sensitive columns.
-
Query the target tables with an engine that reads consistent Apache Iceberg snapshots, such as Amazon Athena or Apache Spark. The integration manages the target tables, written in native Apache Iceberg V2 format, and they are read-only. Aurora PostgreSQL writes updates and deletes as equality deletes, so an engine that cannot read them cannot read these tables. For more information, see Managed target tables.
-
Check the per-table status, not only the integration status. An integration can be
activewhile one table is in theFAILEDstate. For more information, see Per-table status. -
When a table resyncs, avoid queries that join it with other tables until it returns to
SYNCED. For more information, see How replication works. -
Keep transactions under 1 GB. Larger transactions can increase replication lag. To watch the replication lag, see Metrics.