Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 AWS S3 的存储桶策略,是否可以强制上传的文件 (PutObject) 具有文件扩展名“.txt”?如果是这样,该存储桶策略会是什么样子?
像这样的东西:
{ "Version":"2008-10-17", "Statement": [ { "Sid":"AddPerm", "Effect":"Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:root" }, "Action": "s3:PutObject", "Resource": "arn:aws:s3:::bucket/*.txt" } ] }