해당 버킷의 정책 편집 -> 아래 코드 적용

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PutObj Deny",
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:PutObject",
            "NotResource": [
                "arn:aws:s3:::<버킷이름>/*.jpeg",
                "arn:aws:s3:::<버킷이름>/*.jpg",
                "arn:aws:s3:::<버킷이름>/*.png"
            ]
        }
    ]
}

 

+ Recent posts