我正在创建一个实验室,我希望我的实验室用户创建的ec2实例被强制
这是我目前的政策,我已经附加到实验室用户
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "ec2:*",
"Effect": "Allow",
"Resource": "*"
},
**{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "arn:aws:iam::186473000259:role/lab_users"
}**,
{
"Effect": "Allow",
"Action": "elasticloadbalancing:*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "cloudwatch:*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "autoscaling:*",
"Resource": "*"
}
]
}
任何信息都会很棒!