这个错误消息是指 AWS DMS(数据库迁移服务)中的 IAM 角色配置不正确。为了解决这个问题,您可以按照以下步骤进行操作:
下面是一个示例代码,用于创建正确的 IAM 角色配置:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogDelivery",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:DescribeLogGroups",
"logs:DescribeLogStreams",
"logs:PutRetentionPolicy"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"dms:Describe*",
"dms:Test*",
"dms:Start*",
"dms:Stop*",
"dms:Delete*",
"dms:Create*",
"dms:Modify*",
"dms:ReloadTables",
"dms:StartReplicationTask",
"dms:StopReplicationTask",
"dms:DeleteReplicationTask",
"dms:ResumeReplicationTask",
"dms:RebootReplicationInstance",
"dms:TestConnection",
"dms:AddTagsToResource",
"dms:RemoveTagsFromResource",
"dms:RefreshSchemas",
"dms:ImportCertificate",
"dms:DeleteCertificate",
"dms:DescribeAccountAttributes",
"dms:DescribeCertificates",
"dms:DescribeConnections",
"dms:DescribeEndpoints",
"dms:DescribeEndpointTypes",
"dms:DescribeEventCategories",
"dms:DescribeEventSubscriptions",
"dms:DescribeEvents",
"dms:DescribeOrderableReplicationInstances",
"dms:DescribePendingMaintenanceActions",
"dms:DescribeRefreshSchemasStatus",
"dms:DescribeReplicationInstanceTaskLogs",
"dms:DescribeReplicationInstances",
"dms:DescribeReplicationSubnetGroups",
"dms:DescribeReplicationTaskAssessmentResults",
"dms:DescribeReplicationTasks",
"dms:DescribeSchemas",
"dms:DescribeTableStatistics",
"dms:ImportEndpoints",
"dms:ModifyEndpoint",
"dms:ModifyEventSubscription",
"dms:ModifyReplicationInstance",
"dms:ModifyReplicationSubnetGroup",
"dms:ModifyReplicationTask",
"dms:RebootCache",
"dms:RefreshSchemas"
],
"Resource": "*"
}
]
}
请确保将
替换为您的 AWS 账户 ID。您可以将此代码作为 IAM 角色策略附加到 dms-vpc-role
角色中。
完成以上步骤后,保存配置更改,并重新启动迁移任务。这将解决 IAM 角色配置不正确的问题。
上一篇:AWS DMS - 如何最佳地将较少的字段从RDS MySQL复制到AWS S3
下一篇:AWS DMS - 在调用CreateReplicationTask操作时出现InvalidParameterValueException:复制任务设置文档错误:无效的json。