Getting started with Aurora zero-ETL integrations
Before you create a zero-ETL integration or an Aurora PostgreSQL integration with Amazon S3 Tables (Preview), configure your Aurora DB cluster and your target with the required parameters and permissions. During setup, you will complete the following steps:
After you complete these tasks, continue to Creating Aurora zero-ETL integrations with Amazon Redshift, Creating Aurora zero-ETL integrations with an Amazon SageMaker lakehouse, or Creating integrations with Amazon S3 Tables.
You can use the AWS SDKs to automate the setup process for you. For more information, see Set up an integration using the AWS SDKs.
You can have RDS complete these setup steps for you while you are creating the integration, rather than performing them manually. To immediately start creating an integration, see the Creating topic for your target: Creating Aurora zero-ETL integrations with Amazon Redshift, Creating Aurora zero-ETL integrations with an Amazon SageMaker lakehouse, or Creating integrations with Amazon S3 Tables.
For Step 3, choose the target that fits your needs: a target data warehouse (Step 3a), a target lakehouse (Step 3b), or a target Amazon S3 Tables table bucket (Step 3c):
-
Choose a data warehouse if you need traditional data warehousing capabilities with SQL-based analytics.
-
Choose an Amazon SageMaker Lakehouse if you need machine learning capabilities and want to use lakehouse features for data science and ML workflows.
-
Choose an Amazon S3 Tables table bucket if you want to replicate Aurora PostgreSQL data to Apache Iceberg tables for analytics with AWS analytics services (Preview).
Step 1: Create a custom DB cluster parameter group
Aurora zero-ETL integrations require specific values for the DB cluster
parameters that control replication. Specifically, Aurora MySQL requires
enhanced binlog (aurora_enhanced_binlog), and
Aurora PostgreSQL requires enhanced logical replication
(aurora.enhanced_logical_replication).
To configure binary logging or logical replication, you must first create a custom DB cluster parameter group, and then associate it with the source DB cluster.
Aurora MySQL (aurora-mysql8.0 family):
-
aurora_enhanced_binlog=1 -
binlog_backup=0 -
binlog_format=ROW -
binlog_replication_globaldb=0 -
binlog_row_image=full -
binlog_row_metadata=full
In addition, make sure that the
binlog_transaction_compression parameter is not
set to ON, and that the binlog_row_value_options parameter is
not set to PARTIAL_JSON.
For more information about Aurora MySQL enhanced binlog, see Setting up enhanced binlog for Aurora MySQL.
Aurora PostgreSQL (for example, the aurora-postgresql16 family):
-
rds.logical_replication=1 -
aurora.enhanced_logical_replication=1 -
aurora.logical_replication_backup=0 -
aurora.logical_replication_globaldb=0
Use the parameter group family that matches your DB engine major
version, for example aurora-postgresql17.
When enhanced logical replication
(aurora.enhanced_logical_replication) is enabled, Aurora PostgreSQL writes
all column values to the write-ahead log (WAL), even if REPLICA IDENTITY
FULL is not set. This can increase the I/O operations per second (IOPS) on the
source DB cluster.
If you enable or disable the aurora.enhanced_logical_replication DB
cluster parameter, the primary DB instance invalidates all logical replication
slots. This stops replication from the source to the target, and you must recreate
replication slots on the primary DB instance. To prevent interruptions, keep the
parameter state consistent during replication.
Step 2: Select or create a source DB cluster
After you create a custom DB cluster parameter group, choose or create an Aurora DB cluster. This cluster will be the source of data replication to your target data warehouse, lakehouse, or Amazon S3 Tables table bucket. You can specify a DB cluster that uses provisioned DB instances or Aurora serverless DB instances as the source. For instructions to create a DB cluster, see Creating an Amazon Aurora DB cluster or Creating a DB cluster that uses Aurora serverless.
The database must be running a supported DB engine version. For a list of supported versions, see Supported Regions and Aurora DB engines for zero-ETL integrations.
When you create the DB cluster, under Additional configuration, for DB cluster parameter group, choose the custom parameter group that you created in Step 1.
If you associate the parameter group with the DB cluster after the cluster is already created, you must reboot the primary DB instance in the cluster to apply the changes before you can create the integration. For instructions, see Rebooting an Amazon Aurora DB cluster or Amazon Aurora DB instance.
Step 3a: Create a target data warehouse
After you create your source DB cluster, you must create and configure a target data warehouse. The data warehouse must meet the following requirements:
-
Using an RA3 node type with at least two nodes, or Redshift Serverless.
-
Encrypted (if using a provisioned cluster). For more information, see Amazon Redshift database encryption.
For instructions to create a data warehouse, see Creating a cluster for provisioned clusters, or Creating a workgroup with a namespace for Redshift Serverless.
Enable case sensitivity on the data warehouse
For the integration to be successful, the case sensitivity parameter (enable_case_sensitive_identifier) must be enabled for
the data warehouse. By default, case sensitivity is disabled on all provisioned
clusters and Redshift Serverless workgroups.
To enable case sensitivity, perform the following steps depending on your data warehouse type:
-
Provisioned cluster – To enable case sensitivity on a provisioned cluster, create a custom parameter group with the
enable_case_sensitive_identifierparameter enabled. Then, associate the parameter group with the cluster. For instructions, see Managing parameter groups using the console or Configuring parameter values using the AWS CLI.NoteRemember to reboot the cluster after you associate the custom parameter group with it.
-
Serverless workgroup – To enable case sensitivity on a Redshift Serverless workgroup, you must use the AWS CLI. The Amazon Redshift console does not currently support modifying Redshift Serverless parameter values. Send the following update-workgroup request:
aws redshift-serverless update-workgroup \ --workgroup-nametarget-workgroup\ --config-parameters parameterKey=enable_case_sensitive_identifier,parameterValue=trueYou do not need to reboot a workgroup after you modify its parameter values.
Configure authorization for the data warehouse
After you create a data warehouse, you must configure the source Aurora DB cluster as an authorized integration source. For instructions, see Configure authorization for your Amazon Redshift data warehouse.
Set up an integration using the AWS SDKs
Rather than setting up each resource manually, you can run the following Python script
to automatically set up the required resources for you. The code example uses the AWS SDK for Python (Boto3)
To install the required dependencies, run the following commands:
pip install boto3 pip install time
Within the script, optionally modify the names of the source, target, and parameter
groups. The final function creates an integration named my-integration
after the resources are set up.
Step 3b: Create an AWS Glue catalog for Amazon SageMaker Lakehouse zero-ETL integration
When creating a zero-ETL integration with an Amazon SageMaker Lakehouse, you
must create an AWS Glue managed catalog in AWS Lake Formation. The target catalog must be an Amazon Redshift
managed catalog. To create an Amazon Redshift managed catalog, first create the
AWSServiceRoleForRedshift service-linked role. In the Lake Formation console, add
the AWSServiceRoleForRedshift as a read-only administrator.
For more information about the previous tasks, see the following topics.
-
For information about creating an Amazon Redshift managed catalog, see Creating an Amazon Redshift managed catalog in the AWS Glue Data Catalog in the AWS Lake Formation Developer Guide.
-
For information about the service-linked role for Amazon Redshift, see Using service-linked roles for Amazon Redshift in the Amazon Redshift Management Guide.
-
For information about read-only administrator permissions for Lake Formation, see Lake Formation personas and IAM permissions reference in the AWS Lake Formation Developer Guide.
Configure permissions for the target AWS Glue catalog
Before creating a target catalog for zero-ETL integration, you must create the Lake Formation target creation role and the AWS Glue data transfer role. Use the Lake Formation target creation role to create the target catalog. When creating the target catalog, enter the Glue data transfer role in the IAM role field in the Access from engines section.
The target creation role must be a Lake Formation administrator and requires the following permissions.
The target creation role must have the following trust relationship.
The Glue data transfer role is required for MySQL catalog operations and must have the following permissions.
The Glue data transfer role must have the following trust relationship.
Step 3c: Create a target Amazon S3 Tables table bucket
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
Before you create an Aurora PostgreSQL integration with Amazon S3 Tables, complete the earlier steps on this page to set up the source DB cluster. For the DB cluster parameters that the integration requires, see Step 1: Create a custom DB cluster parameter group.
On this page, you create the target table bucket, authorize the integration to use it, and turn on integration with AWS analytics services.
In the RDS console, you can create a table bucket while you create the integration. For a table bucket in the same account, the console also sets up the resource policy for you. For a table bucket in another account, or when you use the AWS CLI, create the table bucket and its resource policy as described on this page.
Topics
Required permissions
To set up the target table bucket, you need the following permissions:
-
Permission to create a table bucket and attach a resource policy to it, for example
s3tables:CreateTableBucket,s3tables:PutTableBucketPolicy, ands3tables:GetTableBucketPolicy. -
If the source DB cluster uses a customer managed AWS Key Management Service (AWS KMS) key, permission to update its key policy. You need it to add the statements in Customer managed key for the source DB cluster.
-
If the target table bucket uses SSE-KMS with a customer managed key, permission to update that key's policy. You need it to add the statements in Customer managed key for the target table bucket.
For the permissions to create the integration, see Required permissions.
Creating the table bucket and resource policy
Create the target table bucket, and then attach a resource policy that allows the
integration to create namespaces and tables, and to read and write table data. The
integration reaches your table bucket through one service principal,
export.rds.amazonaws.com. The policy has two statements for it, one for
the table bucket and one for its tables:
-
The bucket statement lets the integration locate the table bucket and create namespaces and tables. The integration uses it when it first creates the namespace and table layout, and again when a data definition language (DDL) change requires a new table. For more information, see Data organization for integrations with Amazon S3 Tables and Schema changes for integrations with Amazon S3 Tables.
-
The table statement lets the integration read and write table data and metadata, and delete or rename a table when you drop or rename the source table. The integration uses it during a full sync, during ongoing replication, and when a DDL change alters a table.
Both statements use the aws:SourceAccount and aws:SourceArn
condition keys, so the integration can access the table bucket only on behalf of your
source DB cluster. Set aws:SourceArn to your source DB cluster's Amazon Resource Name
(ARN). This is the same ARN that you pass to create-integration as
--source-arn.
Grant only the actions shown.
To create the table bucket and attach its resource policy
-
Create the table bucket with the
create-table-bucketcommand.Example
For Linux, macOS, or Unix:
aws s3tables create-table-bucket \ --namemy-table-bucket\ --regionus-east-1For Windows:
aws s3tables create-table-bucket ^ --namemy-table-bucket^ --regionus-east-1 -
Create a file named
s3t-bucket-policy.jsonthat contains the resource policy.Replace the Region, bucket name, and cluster name with your own values. In the
ResourceARNs, use the ID of the account that owns the table bucket. Inaws:SourceArnandaws:SourceAccount, use the ID of the account that owns the source DB cluster. These are the same account unless the table bucket is in another account. To let several DB clusters in the source account share the table bucket, useArnLikewitharn:aws:rds:.us-east-1:111122223333:cluster:* -
Attach the policy to the table bucket with the
put-table-bucket-policycommand.Example
For Linux, macOS, or Unix:
aws s3tables put-table-bucket-policy \ --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/my-table-bucket\ --resource-policy file://s3t-bucket-policy.jsonFor Windows:
aws s3tables put-table-bucket-policy ^ --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/my-table-bucket^ --resource-policy file://s3t-bucket-policy.json -
Confirm the policy.
aws s3tables get-table-bucket-policy --table-bucket-arn arn:aws:s3tables:us-east-1:111122223333:bucket/my-table-bucketThe output contains the policy that you attached.
Turning on integration with AWS analytics services
Before an engine such as Amazon Athena can read the target tables, you integrate the table bucket with AWS analytics services. You turn this on once for each Region, with the Amazon S3 console or the AWS CLI. The per-table status queries and querying with Athena both depend on it. For more information, see Per-table status and Querying with Amazon Athena.
For instructions, see Integrating Amazon S3 Tables with AWS analytics services in the Amazon Simple Storage Service User Guide.
Using a table bucket in another account
The source DB cluster and the target table bucket can be in different AWS accounts if both are in the same AWS Region. In that case, the following requirements apply:
-
The source DB cluster must be in the account that calls
create-integration. -
In the table bucket owner's account, the bucket resource policy must grant the integration access, as described in Creating the table bucket and resource policy. It must also grant the identity that calls
create-integrationthe table bucket permissions in Required permissions. In this policy,aws:SourceAccountandaws:SourceArnname the source account, not the table bucket owner's account. -
In the source account, the identity that calls
create-integrationneeds an identity-based policy that allowss3tables:GetTableBucket,s3tables:CreateNamespace, ands3tables:DeleteNamespaceon the table bucket ARN. Cross-account access needs both this identity-based policy and the bucket resource policy.
The following procedure uses 111122223333 for the account that owns the
source DB cluster, and 444455556666 for the account that owns the table
bucket.
To set up a table bucket in another account
-
In the table bucket owner's account (
444455556666), create the table bucket and attach its resource policy, as described in Creating the table bucket and resource policy. In theResourceARNs, use444455556666. Inaws:SourceAccountandaws:SourceArn, use111122223333.The policy also grants the identity in
111122223333that callscreate-integrationthe table bucket permissions in Required permissions. -
If the table bucket uses SSE-KMS with a customer managed key, add the statements in Customer managed key for the target table bucket to that key's policy.
-
In the account that owns the table bucket, turn on integration with AWS analytics services, as described in Turning on integration with AWS analytics services.
-
In the source account (
111122223333), attach an identity-based policy to the identity that callscreate-integration. The policy allowss3tables:GetTableBucket,s3tables:CreateNamespace, ands3tables:DeleteNamespaceonarn:aws:s3tables:.us-east-1:444455556666:bucket/my-table-bucket -
In the source account, create the integration. For
--target-arn, use the ARN of the table bucket in the owner's account. The filedata-rules.jsoncontains your data rules. For examples, see Data rules for integrations with Amazon S3 Tables.Example
For Linux, macOS, or Unix:
aws rds create-integration \ --integration-namemy-s3tables-integration\ --source-arn arn:aws:rds:us-east-1:111122223333:cluster:my-source-cluster\ --target-arn arn:aws:s3tables:us-east-1:444455556666:bucket/my-table-bucket\ --data-rules file://data-rules.jsonFor Windows:
aws rds create-integration ^ --integration-namemy-s3tables-integration^ --source-arn arn:aws:rds:us-east-1:111122223333:cluster:my-source-cluster^ --target-arn arn:aws:s3tables:us-east-1:444455556666:bucket/my-table-bucket^ --data-rules file://data-rules.json
Next steps
After you set up the source DB cluster and the target table bucket, create the integration. For instructions, see Creating integrations with Amazon S3 Tables.
Next steps
With a source Aurora DB cluster and a target data warehouse, lakehouse, or Amazon S3 Tables table bucket, you can create the integration and replicate data. For instructions, see Creating Aurora zero-ETL integrations with Amazon Redshift, Creating Aurora zero-ETL integrations with an Amazon SageMaker lakehouse, or Creating integrations with Amazon S3 Tables.