Can I use an Amazon S3 bucket as an AWS DMS target?

3 minute read

I want to use an Amazon Simple Storage Service (Amazon S3) bucket as the target for AWS Database Migration Service (AWS DMS). My resources are in the same account.

Short description

After you create a replication instance, complete these steps to use an S3 bucket as your target endpoint for AWS DMS:

  1. Create an S3 bucket.
  2. Create an AWS Identity and Access Management (IAM) policy.
  3. Create a role.
  4. Create your target endpoint.

For more information, see Using Amazon S3 as a target for AWS Database Migration Service.


Create an S3 bucket

  1. Open the Amazon S3 console, and then create a bucket.
  2. Select the bucket that you created, and then choose Create folder.
  3. Enter a folder name, and then choose Save.

Create an IAM policy

1.    Open the IAM console, and then choose Policies from the navigation pane.

2.    Choose Create policy, and then choose JSON.

3.    Add an IAM policy similar to the following example:

  "Version": "2012-10-17",
  "Statement": [
      "Effect": "Allow",
      "Action": [
      "Resource": [
      "Effect": "Allow",
      "Action": [
      "Resource": [

Note: Replace bucketname with the name of your bucket.

4.    Choose Review policy, enter a Name and Description, and then choose Create policy.

Create a role

  1. Open the IAM console, and then choose Roles from the navigation pane.
  2. Choose Create role, choose DMS, and then choose Next: Permissions.
  3. In the Create role pane, in the Search field, choose the policy that you created, and then choose Next: tags.
  4. Choose Next: Review.
  5. Enter a Role name and a Role description.
  6. Choose Create role. Note the Role ARN.

Create your target endpoint

  1. Open the AWS DMS console, and then choose Endpoints from the navigation pane.
  2. Choose Create endpoint, and then select Target endpoint.
  3. Enter the Endpoint identifier, and then choose Amazon S3 as the Target engine.
  4. Paste the Role ARN that you copied into the Service Access Role ARN field.
  5. Enter a Bucket name and Bucket folder.
  6. Under Endpoint settings, add your Endpoint settings, if you have any. For more information, see Endpoint settings when using Amazon S3 as a target for AWS DMS.
  7. (Optional) Under Test endpoint connection, select your virtual private cloud (VPC) and Replication instance, and then choose Run test.
    Note: Your VPC might need to support AWS DMS version 3.4.7. For more information, see Who is impacted when migrating to AWS DMS versions 3.4.7 and higher?
  8. Choose Create endpoint.

Related information

Using Amazon S3 as a source for AWS DMS

Working with an AWS DMS replication instance

Troubleshooting migration tasks in AWS Database Migration Service

AWS OFFICIALUpdated 5 months ago