473,394 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Custom Policy for OSS on Alibaba Cloud

51
Hi Everyone,
I have created a root folder called A and there are two subfolders under A. The two subfolders name are Alice and Peter respectively. I attach a custom policy to the root folder with the policy below.


{
"Statement": [
{
"Action": [
"oss:Get*",
"oss:List*",
"oss:Put*"
],
"Effect": "Allow",
"Resource": "acs:oss:*:*:A/${username}/*"
}
],
"Version": "1"
}

When Alice log in to the console using her credentails and tried to upload a new file into her folder, she is unable to upload the folder.

Does anyone know how to solve this issue or i am using the wrong policy variable?

Thanks in advance.
May 21 '18 #1
1 1753
TimoHa
22
As far as I know, variables like ${username} are not supported. So you need to replace that variable with fixed user name and attach different policies to different user. I know this is very inconvenient, though I don't know any other workaround.
May 22 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dan1701 | last post by:
Is building a Hadoop cluster on Alibaba Cloud with CM + CDH supported?
0
by: IvanH | last post by:
Does Alibaba Cloud ECS Automatic Backup Occupy Server Space?*
0
by: IvanH | last post by:
Can Alibaba Cloud ECS defend against attacks?*
0
by: IvanH | last post by:
What lines are used by Alibaba Cloud ECS?*
0
by: IvanH | last post by:
Does Alibaba Cloud have CDN service?
0
by: IvanH | last post by:
Can OS be Switched or Automatically Added/Upgraded on Alibaba Cloud?
0
by: IvanH | last post by:
https://www.decent.vip My website uses Alibaba Cloud OSS and Alibaba Cloud CDN for Wordpress.It said I can visit this page but it returns a 403 error. And the icon is not there. What can I do?
0
by: IvanH | last post by:
How Can I Migrate from F(x) Data Cloud to Alibaba Cloud when I do web hosting?
1
by: IvanH | last post by:
Recently when I worked on the feature of scanning a QR code to make a Tmall payment, the curl_exec function always gave an Error 500 report after I coded an order on WeChat and then initiated a...
1
by: TimoHa | last post by:
When I upload multiple files to Alibaba Cloud OSS, do I upload files one by one or upload the entire directory at one go? Alibaba Cloud OSS provides two methods for uploading files. //Upload a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.