Aws iam the create - role - role - the name vmimport - assume - role - policy - document file://trust-policy.json
Aws iam put - role - policy - role - the name vmimport - policy - the name vmimport - policy - document file://role-policy.json
Role - policy. Json
{
"Version" : "2012-10-17,"
"The Statement:" [
{
"Effect" : "Allow",
"Action" : [
S3: CreateBucket,
S3: DeleteBucket,
S3: DeleteObject ", "
S3: GetBucketLocation,
S3: GetObject,
S3: ListBucket,
S3: PutObject "
],
"Resource" : [
"Arn: aws - cn: s3: : : otrs"
]
},
{
"Effect" : "Allow",
"Action" : [
S3: GetObject "
],
"Resource" : [
"Arn: aws - cn: s3: : : otrs/*"
]
},
{
"Effect" : "Allow",
"Action" : [
"Ec2: CancelConversionTask",
"Ec2: CancelExportTask",
"Ec2: CreateImage",
"Ec2: CreateInstanceExportTask",
"Ec2: CreateTags",
"Ec2: DeleteTags",
"Ec2: DescribeConversionTasks",
"Ec2: DescribeExportTasks",
"Ec2: DescribeInstanceAttribute",
"Ec2: DescribeInstanceStatus",
"Ec2: DescribeInstances",
"Ec2: DescribeTags",
"Ec2: ImportInstance",
"Ec2: ImportVolume",
"Ec2: StartInstances",
"Ec2: StopInstances",
"Ec2: TerminateInstances",
"Ec2: ImportImage",
"Ec2: ImportSnapshot",
"Ec2: DescribeImportImageTasks",
"Ec2: DescribeImportSnapshotTasks",
"Ec2: CancelImportTask",
"Ec2: RegisterImage",
"Ec2: CopyImage",
"Ec2: CopySnapshot
"],
"Resource" : "*
"}
]
}
CodePudding user response:
Such as online to implore you to help us