AliyunGovernanceLogArchiveRolePolicy

AliyunGovernanceLogArchiveRolePolicy 是专用于服务角色的授权策略,通常会在创建对应的服务角色时同步完成授权,以允许服务角色代您访问其他云服务。本策略由对应的阿里云服务按需更新,请勿将本策略授权给服务角色之外的 RAM 身份使用。

策略详情

  • 类型:系统策略

  • 创建时间:2021-09-08 08:22:29

  • 更新时间:2023-05-12 08:55:58

  • 当前版本:v7

策略内容

{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "log:DescribeService",
        "log:EnableService",
        "log:CreateProject",
        "log:GetProject",
        "log:ListProject",
        "log:CreateLogstore",
        "log:GetLogstore",
        "log:ListLogstore",
        "log:ListLogStores",
        "log:ListShards",
        "log:ListTagResources",
        "log:TagResources",
        "log:GetProjectPolicy",
        "oss:PutBucket",
        "oss:GetService",
        "oss:ListBuckets",
        "oss:GetBucketInfo",
        "oss:OpenOssService",
        "oss:PutBucketAcl",
        "oss:GetBucketCors",
        "oss:GetBucketWebsite",
        "oss:GetBucketLogging",
        "oss:GetBucketReferer",
        "oss:GetBucketLifecycle",
        "oss:GetBucketPolicy",
        "oss:GetBucketTags",
        "oss:GetBucketTagging",
        "oss:GetBucketTransferAcceleration",
        "oss:PutBucketTagging"
      ],
      "Resource": "*"
    },
    {
      "Action": [
        "config:GetConfigRuleComplianceByPack",
        "config:ListConfigRuleEvaluationResults",
        "config:StartConfigurationRecorder",
        "config:PutConfigurationRecorder",
        "config:DescribeConfigurationRecorder",
        "config:ListCompliancePacks",
        "config:CreateCompliancePack",
        "config:UpdateCompliancePack",
        "config:GetCompliancePack",
        "config:GetConfigRule",
        "config:UpdateConfigRule",
        "config:DeleteCompliancePacks",
        "config:DetachConfigRuleToCompliancePack",
        "config:AttachConfigRuleToCompliancePack",
        "config:ListConfigRules",
        "config:GetManagedRule",
        "config:CreateConfigRule",
        "config:DeleteConfigRules"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
          "log:CreateJob",
          "log:UpdateJob"
      ],
      "Resource": "acs:log:*:*:project/slsaudit-*/job/sls-audit-*"
    },
    {
        "Effect": "Allow",
        "Action": [
            "log:AnalyzeAppLog",
            "log:GetApp",
            "log:CreateApp"
        ],
        "Resource": "acs:log:*:*:app/audit"
    },
    {
      "Action": "ram:CreateServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": [
            "config.aliyuncs.com",
            "audit.log.aliyuncs.com"
          ]
        }
      }
    },
    {
        "Effect": "Allow",
        "Action": "ram:GetRole",
        "Resource": "acs:ram:*:*:role/aliyunserviceroleforslsaudit"
    },
    {
        "Effect": "Allow",
        "Action": "ram:ListRoles",
        "Resource": "acs:ram:*:*:role/*"
    }
  ],
  "Version": "1"
}

相关文档