Add a Replicat for Amazon S3
Learn to create a Replicat process for an Amazon S3 target in OCI GoldenGate
Before you begin
Before adding and running a Replicat for Amazon S3, ensure that you have the following:
- An Amazon S3 connection created and assigned to your target Big Data deployment
- An Amazon Web Services (AWS) region
Add a Replicat (23ai)
Ensure that you review prerequisites specific to this target type.
Add a Replicat (21c)
Learn to add a replicat process for Amazon S3.
Learn more
Interested in learning how to create and run a target-initiated Receiver Path? Refer to the Send data from OCI GoldenGate to Oracle GoldenGate quickstart or try the LiveLabs version in a sandbox environment.
Known issues with Amazon S3
Java.net.UnknownHostException errors for Amazon S3 and Google Cloud Storage connections with Shared endpoints
When using Amazon S3 and Google Cloud Storage connections with Shared endpoints, you may encounter Java.net.UnknownHostException errors.
Workaround: Edit the connection and change the Traffic routing method to Dedicated, or select Dedicated when you create Amazon S3 and Google Cloud Storage connections.
Issue with Amazon S3 connections in OCI GoldenGate
If you encounter the following error when using Amazon S3 connections, then open a support ticket, share the details and error message.
ERROR 2024-03-04 11:42:31.000505 [TaskEngine_2(FileFinalizeTask)] - Verify S3 bucket
[ggstest] failed.com.amazonaws.SdkClientException: Unable to execute HTTP request: s3.us-east-2.amazonaws.com You can then use the following steps as a temporary workaround.
Workaround:
- Connect to Cloud Shell.
- Create a new Amazon S3 connection using the following CLI
sample:
oci goldengate connection create-amazon-s3-connection --routing-method SHARED_SERVICE_ENDPOINT --display-name <connection_name> --compartment-id <compartment_ocid> --technology-type AMAZON_S3 --access-key-id <aws_access_key> --secret-access-key <aws_secret> --connection-region <amazon_s3_bucket_region> - Assign the connection to your deployment.
- Add and run a Replicat for Amazon S3.
Alternatively, if you prefer not to use public access, configure your Amazon S3 connection's buckets to use AWS VPC Endpoints. For OCI GoldenGate to access your S3 bucket using VPC Endpoints, you must also configure an IPsec VPN between your VCN and the AWS VPC.
To set the endpoint for Amazon S3, add the
gg.eventhandler.s3.url property to Replicat Properties File, and
provide the endpoint for the private connection.