본문 바로가기

IT knowledge?/Amazon Web Service

별개 S3 접근제어를 위한 IAM Role

여러개의 AWS S3를 사용할 경우, 각각의 버킷에 대해 별도의 접근 제어를 해야할

이슈가 생길 수 있음.


{

    "Version": "2012-10-17",

    "Statement": [

        {

            "Effect": "Allow",

            "Action": "s3:ListAllMyBuckets",

            "Resource": "arn:aws:s3:::*"

        },

        {

            "Effect": "Allow",

            "Action": [

                "s3:ListBucket",

                "s3:GetBucketLocation"

            ],

            "Resource": "arn:aws:s3:::버킷명1"

        },

        {

            "Effect": "Allow",

            "Action": [

                "s3:PutObject",

                "s3:GetObject",

                "s3:DeleteObject"

            ],

            "Resource": "arn:aws:s3:::버킷명1/*"

        }

    ]

}


참고문서 : http://docs.aws.amazon.com/ko_kr/IAM/latest/UserGuide/access_policies_examples.html

'IT knowledge? > Amazon Web Service' 카테고리의 다른 글

[AWS]S3FS를 이용한 s3 마운트 정리  (0) 2016.08.08