All Products
Search
Document Center

Resource Access Management:AliyunServiceRolePolicyForActionTrail

Last Updated:Sep 02, 2024

AliyunServiceRolePolicyForActionTrail 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: 03:03:09 on July 15, 2020

  • Update time: 08:14:25 on August 24, 2023

  • Current version: v11

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "oss:ListObjects",
        "oss:PutObject",
        "oss:GetBucketInfo",
        "oss:GetBucketLifecycle",
        "oss:GetBucketLocation",
        "kms:ListKeys",
        "kms:Listalias",
        "kms:ListAliasesByKeyId",
        "kms:DescribeKey",
        "kms:GenerateDataKey",
        "kms:Decrypt"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:GetProject",
        "log:ListJobs",
        "log:DescribeService"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:PostLogStoreLogs",
        "log:CreateLogstore",
        "log:GetLogstore",
        "log:CreateIndex",
        "log:UpdateIndex",
        "log:GetIndex",
        "log:GetLogStoreLogs",
        "log:UpdateLogStore"
      ],
      "Resource": [
        "acs:log:*:*:project/*/logstore/actiontrail_*",
        "acs:log:*:*:project/*/logstore/innertrail_*",
        "acs:log:*:*:project/*/logstore/insights_*"
      ],
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:CreateDashboard",
        "log:UpdateDashboard"
      ],
      "Resource": "acs:log:*:*:project/*/dashboard/*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:CreateSavedSearch",
        "log:UpdateSavedSearch"
      ],
      "Resource": [
        "acs:log:*:*:project/*/savedsearch/actiontrail_*",
        "acs:log:*:*:project/*/savedsearch/innertrail_*",
        "acs:log:*:*:project/*/savedsearch/insights_*"
      ],
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:CreateProject",
        "log:CreateETL",
        "log:CreateJob",
        "log:DeleteETL",
        "log:DeleteJob",
        "log:UpdateJob"
      ],
      "Resource": "acs:log:*:*:project/actiontrail-*",
      "Effect": "Allow"
    },
    {
      "Action": "mns:PublishMessage",
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "resourcemanager:GetResourceDirectory",
        "resourcemanager:ListAccounts",
        "resourcemanager:GetResourceDirectoryAccount"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "cms:DescribeMetricList",
        "cms:QueryMetricList"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "actiontrail.aliyuncs.com"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "odps:updateUsersToAdmin",
      "Resource": "acs:odps:*:*:projects/actiontrail_*"
    }
  ]
}

References