All Products
Search
Document Center

Resource Access Management:AliyunServiceRolePolicyForSFMAccessCMS

Last Updated:Apr 16, 2025

AliyunServiceRolePolicyForSFMAccessCMS is the authorization policy dedicated to a service-linked role. The policy is automatically attached to a service role when the service role is created. Then, the service-linked role is authorized to access other cloud services. This policy is updated by the relevant Alibaba Cloud service. Do not attach this policy to a RAM identity other than a service-linked role.

Policy details

  • Type: service system policy

  • Creation time: 13:46:03 on March 18, 2025

  • Update time: 01:59:36 on April 16, 2025

  • Current version: v2

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": "cms:GetCmsService",
      "Resource": "acs:cms:*:*:cmsservice/*",
      "Effect": "Allow"
    },
    {
      "Action": "cms:GetPrometheusInstance",
      "Resource": "acs:cms:*:*:prometheusinstance/*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:GetProject",
        "log:GetLogs",
        "log:GetLogStoreLogs",
        "log:QueryPrometheusMetrics",
        "log:QueryMetrics"
      ],
      "Resource": [
        "acs:log:*:*:project/aliyun-product-data-*",
        "acs:log:*:*:project/aliyun-product-data-*/logstore/bailian-*",
        "acs:log:*:*:project/aliyun-product-data-*/logstore/bailian-*/*"
      ],
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:GetSlsService",
        "log:OpenSlsService",
        "log:DescribeService",
        "log:EnableService"
      ],
      "Resource": [
        "acs:log:*:*:service"
      ],
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "cms-access.sfm.aliyuncs.com"
        }
      }
    }
  ]
}

References