s3 - deptno/deptno.github.io GitHub Wiki
cloudfront origin access identity λ₯Ό μ€μ ν΄μ λΉκ³΅κ° λ²ν·μ cloudfront λ₯Ό ν΅ν΄μλ μ§μ μ νμ©νλ€.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "2",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity CF_ID"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKET_NAME/*"
}
]
}
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"POST",
"GET",
"HEAD",
"PUT"
],
"AllowedOrigins": [
"https://YYY.com",
],
"ExposeHeaders": [
"x-amz-server-side-encryption",
"x-amz-request-id",
"x-amz-id-2"
]
}
]