aliyun oss 授权文件书写
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了aliyun oss 授权文件书写相关的知识,希望对你有一定的参考价值。
读写权限
"Version": "1",
"Statement": [
"Effect": "Allow",
"Action": [
"oss:ListObjects"
],
"Resource": [
"acs:oss:*:*:k8s-data"
],
"Condition":
"StringLike":
"oss:Prefix": "*"
,
"Effect": "Allow",
"Action": [
"oss:Get*",
"oss:List*",
"oss:Put*",
"oss:AbortMultipartUpload"
],
"Resource": [
"acs:oss:*:*:k8s-data/*"
]
]
完全控制
"Version": "1",
"Statement": [
"Effect": "Allow",
"Action": [
"oss:ListObjects"
],
"Resource": [
"acs:oss:*:*:k8s-data"
],
"Condition":
"StringLike":
"oss:Prefix": "*"
,
"Effect": "Allow",
"Action": [
"oss:*"
],
"Resource": [
"acs:oss:*:*:k8s-data/*"
]
]
备注:需要根据实际情况将"k8s-data"替换成用户自己的buckets名称。
以上是关于aliyun oss 授权文件书写的主要内容,如果未能解决你的问题,请参考以下文章