自定义策略,改i-1,i-2,i-3 为自己的服务器id 就好了
{
"Statement": [
{
"Action": "ecs:*",
"Effect": "Allow",
"Resource": [
"acs:ecs:*:*:instance/i-1",
"acs:ecs:*:*:instance/i-2",
"acs:ecs:*:*:instance/i-3"
]
},
{
"Action": "ecs:CreateSnapshot",
"Effect": "Allow",
"Resource": [
"acs:ecs:*:*:disk/dist-01",
"acs:ecs:*:*:snapshot/*"
]
},
{
"Action": [
"ecs:Describe*"
],
"Effect": "Allow",
"Resource": "*"
}
],
"Version": "1"
}
配置完权限了,其实是可以看到所有服务器的,只不过在操作的时候无法操作