All Products
Search
Document Center

Resource Access Management:AliyunServiceRolePolicyForSLSAlert

Last Updated:Oct 09, 2025

AliyunServiceRolePolicyForSLSAlert 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:55:59 on October 09, 2025

  • Update time: 13:55:59 on October 09, 2025

  • Current version: v1

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "log:GetJob",
        "log:UpdateJob",
        "log:GetResource",
        "log:ListResources",
        "log:GetResourceRecord",
        "log:ListResourceRecords",
        "log:UpdateResourceRecord"
      ],
      "Resource": [
        "acs:log:*:*:project/*",
        "acs:log:*:*:resource/*"
      ],
      "Effect": "Allow"
    },
    {
      "Effect": "Allow",
      "Action": [
        "log:GetLogStoreLogs"
      ],
      "Resource": "acs:log:*:*:project/sls-alert-*"
    },
    {
      "Action": [
        "eventbridge:PutEvents"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "fc:InvokeFunction"
      ],
      "Resource": "acs:fc:*:*:services/*/functions/sls-ops-*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "alert.log.aliyuncs.com"
        }
      }
    }
  ]
}

References