Skip to content

Instantly share code, notes, and snippets.

@qrtt1
Created July 23, 2014 00:42
Show Gist options
  • Save qrtt1/cc5f9f6164716ffc131a to your computer and use it in GitHub Desktop.
Save qrtt1/cc5f9f6164716ffc131a to your computer and use it in GitHub Desktop.
S3 Policy allow anyone to GetObject from some the source IPs
{
"Id": "Policy1406075254752",
"Statement": [
{
"Sid": "Stmt1406075248586",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::issue.details/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": ["111.111.111.111/24", "222.222.222.222/24"]
}
},
"Principal": {
"AWS": [
"*"
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment