This topic describes how to create a RAM role whose trusted entity is an Alibaba Cloud service and authorize the RAM role to access Log Service resources. This type of RAM role is used to authorize access across Alibaba Cloud services.
Step 1: Create a RAM role
Step 2: Grant permissions to the RAM role
- AliyunLogFullAccess: the permissions to manage all Log Service resources.
- AliyunLogReadOnlyAccess: the read-only permissions on all Log Service resources.
If the system policies do not meet your business requirements, you can create a custom policy to implement fine-grained access control. For more information, see Create a custom policy. For information about the examples of policies, see Use custom policies to grant permissions to a RAM user and Overview.
To attach the AliyunLogReadOnlyAccess policy to a RAM role, perform the following steps:
- Log on to the RAM console.
- In the left-side navigation pane, choose .
- On the Roles page, find the RAM role and click Add Permissions in the Actions column.
- In the Add Permissions panel, select the AliyunLogReadOnlyAccess policy and click OK.
- Confirm the authorization result and click Complete.