Symptoms
If a RAM user needs to use the Alibaba Cloud OSS Private Bucket Access feature, the RAM user must be granted the ListRoles permission first.
Solutions
- Log on to the RAM console.
- In the left-side navigation pane, choose .
- On the Policies page, click Create Policy.
- Create a custom policy.
- Specify the Policy Name.
- Optional. Enter remarks in the Note field.
- Set the Configuration Mode to Script.
- Enter the following code in the Policy Document field.
{
"Version": "1",
"Statement": [
{
"Action": "ram:ListRoles",
"Resource": "*",
"Effect": "Allow"
}
]
}
- Click OK.
- Navigate to the page.
- Find the target RAM user and click Add Permissions in the Actions column.
- Grant the required permission to the RAM user.
- Select Custom Policy from the Select Policy drop-down list.
- Select the custom policy created in step 4.
- Click OK.
- Go to the CDN console to enable Alibaba Cloud OSS Private Bucket Access. For more information, see Enable private bucket back-to-origin authorization.