Skip to content

Instantly share code, notes, and snippets.

@opattison
Last active December 21, 2015 06:09
Show Gist options
  • Save opattison/6261937 to your computer and use it in GitHub Desktop.
Save opattison/6261937 to your computer and use it in GitHub Desktop.
AWS S3 bucket with IP limits, for basic development testing on S3.
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AddPermissions",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKETNAME/*",
"Condition" : {
"IpAddress" : {
"aws:SourceIp": "000.00.00.000"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment