Created
April 5, 2016 01:13
-
-
Save craigmdennis/20e952a24183eca4e309d01de74371b7 to your computer and use it in GitHub Desktop.
Whitelist IPs for 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", | |
"Id": "S3PolicyId1", | |
"Statement": [ | |
{ | |
"Sid": "IPAllow", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:*", | |
"Resource": "arn:aws:s3:::dev.simplebitdesign.com/*", | |
"Condition": { | |
"IpAddress": { | |
"aws:SourceIp": [ | |
"0.0.0.0", | |
"0.0.0.0" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If syncing with the CLI you need
--acl private
set.