s3にACL設定

S3のバケットに対して、バケットポリシーを設定(S3の管理画面で設定できる)

 {
    "Version": "2012-10-17",
    "Id": "S3PolicyId1",
    "Statement": [
        {
            "Sid": "IPAllow",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::club-activities/report_formats/*",
            "Condition": {
                "IpAddress": {
                    "aws:SourceIp": [
                        "***.***.***.**/32",
                        "***.***.*.***/32",
                    ]
                }
            }
        }
    ]
}