Skip to content

Instantly share code, notes, and snippets.

@natea
Created May 7, 2015 18:18
Show Gist options
  • Save natea/577793f752175755ac67 to your computer and use it in GitHub Desktop.
Save natea/577793f752175755ac67 to your computer and use it in GitHub Desktop.
{
"Id": "S3PolicyId1",
"Statement": [
{
"Sid": "IPDeny",
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::my-wicked-awesome-bucket/*",
"Condition": {
"NotIpAddress": {
"aws:SourceIp": "72.309.38.2/32"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment