Allow public access on specific folder AWS S3
Table of contents
https://aws.amazon.com/vi/premiumsupport/knowledge-center/read-access-objects-s3-bucket/
https://stackoverflow.com/questions/21917769/s3-bucket-policy-to-make-a-specific-sub-folder-public-and-everything-else-privat
Policy:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKETNAME/*/128/*"
}
]
}
Testing:
Đúng như mong đợi!
Bạn thấy bài viết này như thế nào?