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)
How to save and exit after editing a file in Linu...
Table of contents Preface What is VueUse Easy to ...
This article is based on the CentOS 7.3 system en...
Table of contents Preface 1. Download MySQL from ...
Table of contents 1 Introduction 2 Prerequisites ...
1. Introduction pt-query-digest is a tool for ana...
Table of contents Preface 1. How to cancel a requ...
Table of contents 1. Introduction 2. Composition ...
Table of contents In JavaScript , we can usually ...
The mysql service is started, but the connection ...
Today we analyzed another typical problem about d...
Written in front Recently, a reader told me that ...
Table of contents 1. Understanding the Equality R...
Subquery in MySql database: Subquery: nesting ano...
When making forms, we often encounter the situati...