All Products
Search
Document Center

Resource Access Management:AliyunServiceRolePolicyForECRFlowLog

Last Updated:Sep 09, 2025

AliyunServiceRolePolicyForECRFlowLog 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: 09:55:10 on November 15, 2024

  • Update time: 10:24:15 on September 09, 2025

  • Current version: v3

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "log:PostLogStoreLogs",
        "log:AnalyzeProductLog",
        "log:GetLogStore",
        "log:CreateProject",
        "log:CreateLogStore",
        "log:UpdateLogStore",
        "log:GetIndex",
        "log:CreateIndex",
        "log:UpdateIndex",
        "log:CreateDashboard",
        "log:UpdateDashboard",
        "log:CreateSavedSearch",
        "log:UpdateSavedSearch",
        "log:OpenProductDataCollection",
        "log:CloseProductDataCollection",
        "log:GetProductDataCollection",
        "log:ListLogStores",
        "log:ListSavedSearch",
        "log:ListDashboard",
        "log:GetLogStoreLogs",
        "log:CreateTicket"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "flowlog.ecr.aliyuncs.com"
        }
      }
    }
  ]
}

References