1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
{ "Statement": [ { "Action": [ "s3:ListBucket" ], "Condition": { "StringLike": { "s3:prefix": [ "folder/2020/04/*" ] } }, "Effect": "Allow", "Resource": [ "arn:aws:s3:::my-s3" ] }, { "Action": [ "s3:GetObject*" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::my-s3/folder/2020/04/*" ] } ], "Version": "2012-10-17" } |
例如我们只想开放给某个role 我们s3中特定的一个文件夹下的东西
我的s3 叫my-s3
GetObject 是说如果你知道路径了,直接下载没问题,但是如果你想使用一些
1 |
--recursive |
这种下载整个文件夹的内容,就需要list 曲线
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021