Skip to content

Amazon S3

Firewall

Make sure you don't block yourself! This rules has action to webview too!

Block access from 0.0.0.0/0 except two IPs:

{
    "Version": "2012-10-17",
    "Id": "S3PolicyId1",
    "Statement": [
        {
            "Sid": "IPDeny",
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::wezzet-backups2",
            "Condition": {
                "NotIpAddress": {
                    "aws:SourceIp": [
                        "15.11.11.11/32",
                        "14.22.22.22/32"
                    ]
                },
                "IpAddress": {
                    "aws:SourceIp": "0.0.0.0/0"
                }
            }
        }
    ]
}