S3에 이미지를 등록하고 보려면 Access Denied가 뜨는 이슈를 확인할 수 있다.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>68FPJCQ7YY149KNE</RequestId>
<HostId>O53FFF9oIGio14nCjE2ldDhYUGv186P+rRcLsBcgnJ+MHY3O5T1LKJCFSMrDhAXPzxjNJDBb5mU=</HostId>
</Error>
아래처럼 적용하면 Access Denied가 뜨는걸 사라지게 하고 내가 업로드한 이미지를 확인해 볼 수 있다.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1405592139000",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::YOUR-BUCKET-ARN/*",
"arn:aws:s3:::YOUR-BUCKET-ARN"
]
}
]
}