All Products
Search
Document Center

Resource Access Management:AliyunActionTrailRolePolicy

Last Updated:Sep 02, 2024

AliyunActionTrailRolePolicy is the authorization policy dedicated to a service role. In most cases, when a service role is created, the policy is attached to the service role. Then, the service 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 role.

Policy details

  • Type: service system policy

  • Creation time: 03:35:11 on November 26, 2015

  • Update time: 10:47:13 on May 25, 2021

  • Current version: v11

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "oss:ListObjects",
        "oss:PutObject",
        "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"
      ],
      "Resource": [
        "acs:log:*:*:project/*/logstore/actiontrail_*",
        "acs:log:*:*:project/*/logstore/innertrail_*"
      ],
      "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_*"
      ],
      "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"
    }
  ]
}

References