title: Connecting DMS to S3
body: <p>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.</p>
  
  <p>When we run a connection test on the source endpoint, the error we receive is: </p>
  
  <p><code>Error Details: [errType=ERROR_RESPONSE, status=1020414, errMessage= Failed to connect to database., errDetails=]</code></p>
  
  <p>We have followed <a href="http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.S3.html" rel="noreferrer">the documentation</a> 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 <code>GetObject</code>, <code>ListBucket</code> and <code>dms*</code> permissions. I'm 95% sure that the JSON mapping file is set up correctly with schema and table names pointing to the right place.</p>
  
  <p>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.</p>