Configure permissions for data transformation jobs
Configure permissions for Simple Log Service (SLS) data transformation jobs so that your users can manage the jobs and each job can read source data and write transformation results.
Permissions for data transformation jobs fall into the following two categories:
Operation permissions — Permissions for a Resource Access Management (RAM) user to create, delete, modify, and view data transformation jobs, and to preview data in the SLS console or by using an SDK.
Data access permissions — Permissions for a data transformation job to read data from a source LogStore and write the results to a destination LogStore.
Grant a RAM user permissions to perform data transformation operations
These operations include creating, deleting, modifying, and viewing transformation jobs, and previewing data. Make sure you have created a RAM user. You can grant permissions in either of the following ways:
Use a system policy: Simple to configure but grants broad, coarse-grained permissions.
Use a custom policy: Grants fine-grained control over specific projects or Logstores. Recommended for strict permission requirements.
Use a system policy
Log on to the Resource Access Management (RAM) console using an Alibaba Cloud account or as a RAM administrator.
Attach the following system policies to the RAM user (Manage RAM user permissions):
AliyunRAMFullAccessAliyunLogFullAccess
After you save the configuration, the RAM user can:
Create, delete, modify, and view data transformation jobs.
Read data from a source Logstore to preview jobs.
Use a custom policy
Log on to the RAM console by using an Alibaba Cloud account or as a RAM administrator.
Create a custom policy in script mode. For example, name it
log-etl-operator-policy. On the Script Editor tab, replace the content with the following template. Replace the project and LogStore names with your actual values.{ "Version":"1", "Statement":[ { "Effect":"Allow", "Action":[ "log:CreateLogStore", "log:CreateIndex", "log:UpdateIndex", "log:Get*" ], "Resource":"acs:log:*:*:project/ProjectName/logstore/internal-etl-log" }, { "Action":[ "log:List*" ], "Resource":"acs:log:*:*:project/*", "Effect":"Allow" }, { "Action":[ "log:Get*", "log:List*" ], "Resource":[ "acs:log:*:*:project/ProjectName/logstore/LogstoreName" ], "Effect":"Allow" }, { "Effect":"Allow", "Action":[ "log:GetDashboard", "log:CreateDashboard", "log:UpdateDashboard" ], "Resource":"acs:log:*:*:project/ProjectName/dashboard/internal-etl-insight*" }, { "Effect":"Allow", "Action":"log:CreateDashboard", "Resource":"acs:log:*:*:project/ProjectName/dashboard/*" }, { "Effect":"Allow", "Action":[ "log:CreateETL", "log:DeleteETL", "log:UpdateETL", "log:StartETL", "log:StopETL", "log:ListETLS", "log:GetETL" ], "Resource":"acs:log:*:*:project/ProjectName/etl/*" }, { "Effect": "Allow", "Action": [ "ram:PassRole", "ram:GetRole", "ram:ListRoles" ], "Resource": "*" } ] }