Last active
December 21, 2015 06:09
-
-
Save opattison/6261937 to your computer and use it in GitHub Desktop.
AWS S3 bucket with IP limits, for basic development testing on S3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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