AWS
[AWS] AWS S3 bucket 정책 설정
huipark
2023. 7. 20. 14:39
aws s3 bucket에 이미지 업로드를 하기 위해서 정책 설정 등 변경해야 할 것이 있다
s3 bucket 정책 설정
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicListGet",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:List*",
"s3:Get*",
"s3:Put*"
],
"Resource": [
"arn:aws:s3:::your_bucket_name/*",
"arn:aws:s3:::your_bucket_name"
]
}
]
}
cors 설정
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"PUT",
"POST",
"DELETE",
"GET"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": []
}
]
객체 소유권 편집