AliyunServiceRolePolicyForSFMAccessSLS 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: 01:24:26 on January 07, 2025
Update time: 05:04:11 on January 09, 2025
Current version: v5
Policy content
{
"Version": "1",
"Statement": [
{
"Action": [
"log:GetProject",
"log:GetLogs",
"log:GetLogStoreLogs",
"log:GetProductDataCollection",
"log:OpenProductDataCollection",
"log:CloseProductDataCollection"
],
"Resource": [
"acs:log:*:*:project/aliyun-product-data-*",
"acs:log:*:*:project/aliyun-product-data-*/logstore/bailian-*",
"acs:log:*:*:project/aliyun-product-data-*/logstore/bailian-*/*"
],
"Effect": "Allow"
},
{
"Action": [
"log:GetSlsService",
"log:OpenSlsService",
"log:DescribeService",
"log:EnableService"
],
"Resource": [
"acs:log:*:*:service"
],
"Effect": "Allow"
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"sls-access.sfm.aliyuncs.com",
"audit.log.aliyuncs.com",
"middlewarelens.log.aliyuncs.com",
"securitylens.log.aliyuncs.com",
"ai-lens.log.aliyuncs.com",
"storagelens.log.aliyuncs.com"
]
}
}
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "sls-access.sfm.aliyuncs.com"
}
}
}
]
}