This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1067|Reply: 6

Alibaba Cloud OSS Object Storage Tutorial on Creating a New Bucket and Setting RAM Policy

[Copy link]
Posted on 2025-4-8 15:24:42 | | | |
Requirements: Use Alibaba Cloud OSS object storage, create a standard bucket to store files, and create a new RAM policy to allow access to only the bucket through the key call interface.

Create a new OSS bucket

First, open the OSS Control Panel at the address:The hyperlink login is visible., directly create a new bucket, customize the name (for example: itsvse-uat), and leave the other options as default (or modify according to your actual situation). As shown below:



RAM configuration

Access Control RAM (Resource Access Management) is a service provided by Alibaba Cloud to manage user identities and resource access rights.

Open RAM Access Control, click on the right menu "Permission Policies", address:The hyperlink login is visible.to create a permission policy,Only access to the itsvse-uat bucket under OSS is allowed, as shown in the figure below:



Policy JSON configuration:

Create a new user and apply this policy as shown in the following figure:



Permission management is shown in the following figure:



Create an AccessKey access key and save itAccessKey IDAccessKey Secret, as shown in the figure below:



Use Postman tests

Use Postman to call the OSS object store PutObject interface to upload the file.

OSS Object Store PutObject Interface Uploads File Documents:The hyperlink login is visible.
Include the V4 signature document in the Header (recommended):The hyperlink login is visible.

As shown below:



A response status code of 200 indicates a successful upload. You can log in to the Alibaba Cloud OSS console file list to view it, as shown in the following figure:



(End)




Previous:AWS S3 Object Storage Creation Bucket and IAM Policy Setup tutorial
Next:The secp256k1 algorithm behind cryptocurrencies in the blockchain
 Landlord| Posted on 2025-4-8 15:25:24 |
AWS S3 Object Storage Creation Bucket and IAM Policy Setup tutorial
https://www.itsvse.com/thread-10985-1-1.html
 Landlord| Posted on 2025-4-10 09:22:45 |
First Strategy (itsvse-uat)       

The resource scope of the bucket itself       
Applicable operations Bucket-level operations (such as creating or deleting buckets)       
Contains object actions: No
Bucket operation included: Yes


Second Strategy (itsvse-uat/*)

All objects within the bucket
Object-level operations (e.g., uploading, downloading files)
Contains object actions: Yes
Bucket operation included: No

So, just keep the second one, as follows:



 Landlord| Posted on 2025-4-14 08:46:57 |
.NET/C# Alibaba Cloud includes the V4 signature algorithm in the Header
https://www.itsvse.com/thread-10988-1-1.html
 Landlord| Posted on 2025-6-20 11:54:49 |
More granular controls, only uploads and downloads are allowed, down to the folder level


 Landlord| Posted on 2025-8-29 09:06:13 |
OSS Common Management Tools:The hyperlink login is visible.

ossbrowser 2.0

Graphical management tools. OSSbrowser 2.0 is an upgraded version of the old OSSbrowser and supports most of its functions.

Address:The hyperlink login is visible.

The test is as follows:

 Landlord| Posted on 2025-8-29 09:15:02 |
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com