Connect to Amazon S3
Before you begin
- Review how OCI GoldenGate connects to your source and targets.
- Configure the required policies to enable secure Vault and Secrets access, such as use secrets, use vaults, and read secret-bundles. For more information, see Minimum recommended policies.
Create the connection
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.