0
我想捆綁,上傳和註冊實例存儲AMI從運行的實例。當涉及到調用EC2註冊我得到的迴應:亞馬遜ec2註冊未授權
Client.UnauthorizedOperation: You are not authorized to perform this operation.
的實例下通過IAM角色授予的權限運行。該策略使用數據管線預設:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:List*",
"s3:Put*",
"s3:Get*",
"s3:DeleteObject",
"dynamodb:DescribeTable",
"dynamodb:Scan",
"dynamodb:Query",
"dynamodb:GetItem",
"dynamodb:BatchGetItem",
"dynamodb:UpdateTable",
"rds:DescribeDBInstances",
"rds:DescribeDBSecurityGroups",
"redshift:DescribeClusters",
"redshift:DescribeClusterSecurityGroups",
"cloudwatch:PutMetricData",
"datapipeline:PollForTask",
"datapipeline:ReportTaskProgress",
"datapipeline:SetTaskStatus",
"datapipeline:PollForTask",
"datapipeline:ReportTaskRunnerHeartbeat"
],
"Resource": [
"*"
]}
]}
我需要在這裏添加什麼來授權ec2-register運行? ..或者我誤解了這一切是如何運作的?