阿里云-RAM授权子账户SLB健康检查检测

1 创建RAM自定义策略


  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ram:CreateRole",
        "ram:AttachPolicyToRole"
      ],
      "Resource": "acs:ram:*:*:role/AliyunSLBHealthDiagnoseRole",
      "Condition": {
        "ForAllValues:StringEquals": {
          "ram:ServiceNames":"slb.aliyuncs.com"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ram:AttachPolicyToRole"
      ],
      "Resource": "acs:ram:*:system:policy/AliyunSLBHealthDiagnoseRolePolicy"
    }
  ]
}

2 创建RAM接口权限

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "ram:GetRole",
      "Resource": "*"
    }
  ]
}