当前位置:网站首页>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并没有权限

边栏推荐
- FTP服务与实验
- Flex layout
- Experiment: creation, expansion, and deletion of LVM logical volumes
- 随机森林、LGBM基于贝叶斯优化调参
- MySQL batch modifies the data table code and character set to utf8mb4
- DHCP principle and configuration
- Install Apache manually
- RAID5 and LVM are used in combination
- rsync(一):基本命令和用法
- 使用自定义zabbix包(4.0.5版本)安装agent和proxy
猜你喜欢

【波形/信号发生器】基于 STC1524K32S4 for C on Keil

Animation effect

System safety and Application

带你深入了解MySQL数据库扣减库存原理

File system and log analysis

Quick start of go language

STM32基于 FatFs R0.14b&SD Card 的MP3音乐播放器(也算是FatFs的简单应用了吧)

在IDEA里斗个地主不过分吧!

Detailed analysis of the process (life cycle) of class loading

Iterators and generators
随机推荐
Special effects - bubble tailing occurs when the mouse moves
Solution of forgetting root password in mysql5.7 under Windows
Special effects - click the mouse, and a random color of love will appear
【LVGL】【阶段总结1】
DNS domain name resolution service
Why can't index be the key of V-for?
Experiment: creation, expansion, and deletion of LVM logical volumes
CentOS操作系统安全加固
Machine learning case: smoking in pregnant women and fetal health
【USB电压电流表】基于STM32F103C8T6 for Arduino
Use of awk
神经网络超参数调整(基于ray包)
【小型物体测速仪】只有原理,无代码
带你深入了解MySQL数据库扣减库存原理
Iterators and generators
Introduction to kubernetes (kubernetes benefits)
Crud of MySQL
这些坑你不掌握,你还真不敢用BigDecimal
在IDEA里斗个地主不过分吧!
【LVGL(2)】LVGL入门,在CodeBlock上进行模拟以及移植STM32