bucket (EX: DOCS) policy
À͸íÀÇ »ç¿ëÀÚ¿¡°Ô ¿ÀºêÁ§Æ® GET(Read) ±ÇÇÑ ALLOW
ÀÎÁõµÈ »ç¿ëÀÚ¿¡°Ô ¿ÀºêÁ§Æ® LIST ±ÇÇÑ ALLOW
¹ÌÀÎÁõ »ç¿ëÀÚ¿¡°Ô ¿Àºê°ÔÆ® LIST ±ÇÇÑ DENY
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPublicReadObjects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::DOCS/*"
},
{
"Sid": "AllowAuthenticatedListObjects",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::ACCOUNT_ID:root"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::DOCS"
},
{
"Sid": "DenyUnauthenticatedListObjects",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::DOCS",
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}