Scenario You need to authorize the tester to use a specified directory in a bucket of Alibaba Cloud OSS, such as the static/material/ directory of myBuket. step Create a new user Create a new user in RAM access control Create an AccessKey for this user Custom permission policy Enter a name, remarks, and select "Script Configuration" to configure permissions by writing your own script The script content is as follows: { "Version": "1", "Statement": [ { "Effect": "Allow", "Action": "oss:ListObjects", "Resource": "acs:oss:*:*:myBuket", "Condition": { "StringLike": { "oss:Delimiter": "/", "oss:Prefix": [ "", "static/", "static/material/*" ] } } }, { "Effect": "Allow", "Action": "oss:*", "Resource": [ "acs:oss:*:*:myBuket/static/material/*" ] } ] }
Therefore, the script is divided into two parts, namely two Effect configurations: { "Effect": "Allow", "Action": "oss:ListObjects", "Resource": "acs:oss:*:*:myBuket", "Condition": { "StringLike": { "oss:Delimiter": "/", "oss:Prefix": [ "", "static/", "static/material/*" ] } } } The second part configures all permissions of materinal. Action is "oss:*" to indicate all permissions for operating OSS. { "Effect": "Allow", "Action": "oss:*", "Resource": [ "acs:oss:*:*:myBuket/static/material/*" ] } Configure permissions When adding permissions, select the permissions defined above from the custom policy Open OSSbrowser Use the accessKeyId and AccessKeySerect configured above Just click to log in. OSS's API permissions are also controlled in this way. refer to OSS authorization management through OSSborrower This is the end of this article about the implementation of Alibaba Cloud OSS access permission configuration (RAM permission control). For more information about Alibaba Cloud OSS access permission configuration, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: MySQL 8.0.21.0 Community Edition Installation Tutorial (Detailed Illustrations)
Why do we need to optimize SQL? Obviously, when w...
Table of contents What is a plugin Writing plugin...
At the beginning, I felt sad. The screenshots are...
In previous development, we used the default attr...
Table of contents 1. DOM Diff 2. Add key attribut...
1. Install the Linux system on the virtual machin...
As the cost of building HTTPS websites decreases,...
Table of contents 1. What is a regular expression...
This article mainly records the effect of using j...
Table of contents Install Software Management Ano...
Overlay network analysis Built-in cross-host netw...
The experimental environment is as follows Here y...
Which historical version can the current transact...
Effect: <!doctype html> <html> <he...
<br />Original URL: http://www.lxdong.com/po...