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

边栏推荐
- MySQL批量修改数据表编码及字符集为utf8mb4
- Kubernetes' deployment, service concept, dynamic capacity expansion
- 【小型物体测速仪】只有原理,无代码
- Sort by an attribute value of an object in the array
- 【LVGL】组件的样式的设置、更改、删除API函数
- Write blog at leisure ~ briefly talk about let, VaR and Const
- 实验:磁盘配额操作
- JMeter distributed pressure measurement
- OpenSSL version upgrade
- Special effects - Cherry Blossom falling background effects
猜你喜欢

NFS shared services and experiments

Special effects - when the mouse moves, stars appear to trail

Go environment construction and start

Special effects - click the mouse and the randomly set text will appear

DHCP原理与配置

DNS domain name resolution service

Kubernetes' deployment, service concept, dynamic capacity expansion

我有 7种 实现web实时消息推送的方案,7种!

Several common problems of SQL server synchronization database without public IP across network segments

Secondary processing of template data
随机推荐
Flex layout
CentOS operating system security reinforcement
MySQL批量修改数据表编码及字符集为utf8mb4
Learn more about when to use MySQL two locks (table lock and row lock)
实验:磁盘配额操作
Quick start of go language
history命令历史记录中加时间
Multiple types of functions
Introduction, architecture and principle of kubernetes
LM393 voltage comparator and its typical circuit introduction
【LVGL(1)】LVGL的简单介绍
[esp8266 spot welder] Based on esp8266 for Arduino
Restful API introduction
Grid layout
系统安全及应用
Kubernetes' deployment, service concept, dynamic capacity expansion
I have seven schemes to realize web real-time message push, seven!
Jenkins CI CD
基于回归分析的广告投入销售额预测——K邻近,决策树,随机森林,线性回归,岭回归
Custom MVC 2.0