LoginSignup
0
0

More than 5 years have passed since last update.

IAMポリシーに負けない!S3バケットポリシーのIP制限

Last updated at Posted at 2016-06-24

IAMポリシーに負けない!S3バケットポリシーのIP制限

Denyは強い!

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "IPDeny",
            "Effect": "Deny",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::${bucket_name}/*",
            "Condition": {
                "NotIpAddress": {
                    "aws:SourceIp": [
                        "203.0.113.1/32"
                    ]
                }
            }
        }
    ]
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0