[AWS S3] 버킷 권한 설정

갓김치·2021년 6월 14일
0

work

목록 보기
9/10

기존

{
    "Version": "2012-10-17",
    "Id": "{yourId}",
    "Statement": [
        {
            "Sid": "{yourSid}",
            "Effect": "Allow",
            "Principal": {
                "AWS": "{yourPrincipal}"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::{yourBucketName}/*"
        }
    ]
}

변경

{
    "Version": "2012-10-17",
    "Id": "Policy1577077078140",
    "Statement": [
        {
            "Sid": "Stmt1577076944244",
            "Effect": "Allow",
            "Principal": "*", // 여기 변경
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::azfinancial/*"
        }
    ]
}
  • 기존에 올린거 다 public으로 변경해 주세욤

참고

profile
갈 길이 멀다

0개의 댓글