버킷 -> 퍼블릭 엑세스 차단
모든 퍼블릭 엑세스 차단을 비활성으로 하기
버킷 정책
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::basicchat2/"
}
]
}
CORS
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
이렇게 바꿔 줄 경우 s3에 업로드 되어있는 객체 url 경로를 이미지로 누구나 확인 가능하게 된다.