Manage the AliyunServiceRoleForSLSSecurityLens service-linked role

Updated at:

Simple Log Service provides the Security Log Insight application. You can assign the AliyunServiceRoleForSLSSecurityLens service-linked role to Security Log Insight so that it can access resources of other cloud services.

Scenarios

When you use Security Log Insight to collect logs from security cloud services, Simple Log Service calls API operations of those services to retrieve cloud service information in your account. Simple Log Service uses the AliyunServiceRoleForSLSSecurityLens role to read resources of security cloud services and modify log collection configurations. For more information, see Service-linked roles.

Policy

  • Role name: AliyunServiceRoleForSLSSecurityLens

  • Policy name: AliyunServiceRolePolicyForSLSSecurityLens

  • Policy document:

    {
        "Version": "1",
        "Statement": [
            {
                "Action": [
                    "kms:ListKmsInstances",
                    "kms:GetKmsInstance"
                ],
                "Resource": "*",
                "Effect": "Allow"
            },
            {
                "Action": [
                    "log:CreateProject",
                    "log:GetProject",
                    "log:ListProject",
                    "log:ListLogStores",
                    "log:GetLogStore",
                    "log:CreateIndex",
                    "log:UpdateIndex",
                    "log:GetIndex",
                    "log:CreateDashboard",
                    "log:UpdateDashboard",
                    "log:ListDashboard",
                    "log:CreateLogStore",
                    "log:CreateSavedSearch",
                    "log:UpdateSavedSearch"
                ],
                "Resource": "acs:log:*:*:project/*",
                "Effect": "Allow"
            },
            {
                "Action": "ram:DeleteServiceLinkedRole",
                "Resource": "*",
                "Effect": "Allow",
                "Condition": {
                    "StringEquals": {
                        "ram:ServiceName": "securitylens.log.aliyuncs.com"
                    }
                }
            }
        ]
    }