当前位置:网站首页>oss授权单个bucket权限
oss授权单个bucket权限
2022-07-24 05:27:00 【cxcaln】
oss有时候要给某个账号只授权一个bucket的权限,方式如下:
1、创建一个 阿里云账号,开启编程访问

2、创建一个权限管理策略,内容为:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"oss:ListBuckets",
"oss:GetBucketStat",
"oss:GetBucketInfo"
],
"Resource": "acs:oss:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"oss:ListObjects",
"oss:GetBucketAcl",
"oss:PutBucketAcl"
],
"Resource": "acs:oss:*:*:bucket名"
},
{
"Effect": "Allow",
"Action": [
"oss:ListObjects",
"oss:GetObject",
"oss:GetObjectAcl",
"oss:DeleteObject",
"oss:DeleteObjectAcl",
"oss:PutObject",
"oss:PutObjectAcl"
],
"Resource": "acs:oss:*:*:bucket名/*"
}
]
}3、给步骤一里创建账号赋给步骤二自定义的权限,就ok啦。
登入oss,发现进入其他的bucket并没有权限

边栏推荐
- System safety and Application
- LVM and disk quota
- 【LVGL(3)】设置对象大小、位置、盒子模型、状态
- Account and authority management
- Install agent and proxy using custom ZABBIX package (version 4.0.5)
- [esp8266 spot welder] Based on esp8266 for Arduino
- Several common problems of SQL server synchronization database without public IP across network segments
- Explain the event cycle mechanism and differences between browser and node in detail
- 磁盘管理和文件系统
- Niuke net brush questions
猜你喜欢

Jmeter分布式压测

Account and authority management
![JS: why [] = =! [] return true?](/img/36/94839bf4ce6bd06d2cbe989828c791.png)
JS: why [] = =! [] return true?

Secondary processing of template data

【音频解码芯片】VS1503音频解码芯片的应用

【LVGL(5)】标签的(label)用法

Go environment construction and start

Special effects - click the mouse, and a random color of love will appear
![[small object velocimeter] only principle, no code](/img/df/b8a94d93d4088ebe8d306945fd9511.png)
[small object velocimeter] only principle, no code

带你深入了解MySQL数据库扣减库存原理
随机推荐
Yiwen node installation, download and configuration
Quick start of go language
Today, let's talk about the underlying architecture design of MySQL database. How much do you know?
sql server 同步数据库 跨网段无公网ip几个常见小问题问题
广度优先搜索(模板使用)
Animation effect
Login page + summary
CentOS operating system security reinforcement
Introduction to kubernetes (kubernetes benefits)
Write cookies, sessionstorage, localstorage and session at will
文件系统与日志分析
kubernetes 的Deployment(部署),Service概念,动态扩缩容
These 10 kinds of timed tasks have been learned, and you can float directly
United Nations agricultural products data analysis
Promise (try to implement a promise by yourself) more detailed comments and other interfaces are not completed yet. Let's continue next time.
我有 7种 实现web实时消息推送的方案,7种!
kubernetes简介(kubernetes优点)
基于回归分析的广告投入销售额预测——K邻近,决策树,随机森林,线性回归,岭回归
Machine learning case: smoking in pregnant women and fetal health
深度优先搜索(模板使用)