Creating prerequisites for premigration assessments - Amazon Database Migration Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Creating prerequisites for premigration assessments

This section describes the Amazon S3 and IAM resources you need to create a premigration assessment.

Create an S3 bucket

Amazon DMS stores premigration assessment reports in an S3 bucket. To create the S3 bucket, do the following:

  1. Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/.

  2. Choose Create bucket.

  3. On the Create bucket page, enter a globally unique name that includes your sign-in name for the bucket, such as dms-bucket-yoursignin.

  4. Choose the Amazon Web Services Region for the DMS migration task.

  5. Leave the remaining settings as they are, and choose Create bucket.

Create IAM resources

DMS uses an IAM role and policy to access the S3 bucket to store premigration assessment results.

To create the IAM policy, do the following:

  1. Sign in to the Amazon Web Services Management Console and open the IAM console at https://console.amazonaws.cn/iam/.

  2. In the navigation pane, choose Policies.

  3. Choose Create policy.

  4. In the Create policy page, choose the JSON tab.

  5. Paste the following JSON code into the editor, replacing the example code. Replace my-bucket with the name of the Amazon S3 bucket that you created in the previous section.

    { "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Action":[ "s3:PutObject", "s3:DeleteObject", "s3:GetObject", "s3:PutObjectTagging" ], "Resource":[ "arn:aws:s3:::my-bucket/*" ] }, { "Effect":"Allow", "Action":[ "s3:ListBucket", "s3:GetBucketLocation" ], "Resource":[ "arn:aws:s3:::my-bucket" ] } ] }
  6. Choose Next: Tags, then choose and Next: Review.

  7. Enter DMSPremigrationAssessmentS3Policy for Name*, and then choose Create policy.

To create the IAM role, do the following:

  1. In the IAM console, in the navigation pane, choose Roles.

  2. Choose Create role.

  3. On the Select trusted entity page, for Trusted entity type, choose Amazon Service. For Use cases for other Amazon services, choose DMS.

  4. Check the DMS check box, and then choose Next.

  5. On the Add permissions page, choose DMSPremigrationAssessmentS3Policy. Choose Next.

  6. On the Name, review, and create page, enter DMSPremigrationAssessmentS3Role for Role name, then choose Create role.

  7. On the Roles page, enter DMSPremigrationAssessmentS3Role for Role name. Choose DMSPremigrationAssessmentS3Role.

  8. On the DMSPremigrationAssessmentS3Role page, choose the Trust relationships tab. Choose Edit trust policy.

  9. On the Edit trust policy page, paste the following JSON into the editor, replacing the existing text.

    { "Version":"2012-10-17", "Statement":[ { "Sid":"", "Effect":"Allow", "Principal":{ "Service":"dms.amazonaws.com" }, "Action":"sts:AssumeRole" } ] }

    This policy grants the sts:AssumeRole permission to DMS to put the premigration assessment run results into the S3 bucket.

  10. Choose Update policy.