Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AWS S3 Bucket Policy to protect a bucket web access by IP (Range)
{
"Version": "2012-10-17",
"Id": "Policy1550216993456",
"Statement": [
{
"Sid": "Stmt1550216977234",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-site/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "80.242.123.0/24"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.