Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting DMS to S3

We are trying to get DMS set up with an S3 Source however we are unable to connect the replication instance to the Source S3 endpoint.

When we run a connection test on the source endpoint, the error we receive is:

Error Details: [errType=ERROR_RESPONSE, status=1020414, errMessage= Failed to connect to database., errDetails=]

We have followed the documentation however we are still unable to get the connection to work. The bucket is within the VPC that the replication instance has access to, and the IAM role has the GetObject, ListBucket and dms* permissions. I'm 95% sure that the JSON mapping file is set up correctly with schema and table names pointing to the right place.

Due to the lack of error messages or detailed reasons why we can't connect to the source database (the S3 bucket/CSV file), debugging this feels a tad hit and miss. We are using the Amazon Console and not the CLI, if that makes much of a difference.

like image 398
JamesENL Avatar asked Jan 20 '26 03:01

JamesENL


1 Answers

I had this same error.

Check this troubleshooting guide. It covers the basic configuration problems you might run into.

My answer wasn't there, tho, and I couldn't find it anywhere, not even asking in the official forums.

In my case, for some reason I thought I should use the full bucket name in the "Bucket Name" field, like "arn:aws:s3:::my-bucket". Probably because I had to use the ARN for the role in the previous field.

And the error message when you try to connect to it will not be clear, it only says it couldn't connect to the bucket. Anyway, you don't need to provide an ARN, just the bucket's name, as in "my-bucket".

like image 91
Henrique Miranda Avatar answered Jan 21 '26 22:01

Henrique Miranda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!