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:
Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/
. Choose Create bucket.
On the Create bucket page, enter a globally unique name that includes your sign-in name for the bucket, such as dms-bucket-
yoursignin
.Choose the Amazon Web Services Region for the DMS migration task.
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:
Sign in to the Amazon Web Services Management Console and open the IAM console at https://console.amazonaws.cn/iam/
. In the navigation pane, choose Policies.
Choose Create policy.
In the Create policy page, choose the JSON tab.
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
" ] } ] }Choose Next: Tags, then choose and Next: Review.
Enter
DMSPremigrationAssessmentS3Policy
for Name*, and then choose Create policy.
To create the IAM role, do the following:
In the IAM console, in the navigation pane, choose Roles.
Choose Create role.
On the Select trusted entity page, for Trusted entity type, choose Amazon Service. For Use cases for other Amazon services, choose DMS.
Check the DMS check box, and then choose Next.
On the Add permissions page, choose DMSPremigrationAssessmentS3Policy. Choose Next.
On the Name, review, and create page, enter
DMSPremigrationAssessmentS3Role
for Role name, then choose Create role.On the Roles page, enter
DMSPremigrationAssessmentS3Role
for Role name. Choose DMSPremigrationAssessmentS3Role.On the DMSPremigrationAssessmentS3Role page, choose the Trust relationships tab. Choose Edit trust policy.
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.Choose Update policy.