Skip to content

Instantly share code, notes, and snippets.

@craigmdennis
Created April 5, 2016 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigmdennis/20e952a24183eca4e309d01de74371b7 to your computer and use it in GitHub Desktop.
Save craigmdennis/20e952a24183eca4e309d01de74371b7 to your computer and use it in GitHub Desktop.
Whitelist IPs for S3
{
"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"
]
}
}
}
]
}
@craigmdennis
Copy link
Author

If syncing with the CLI you need --acl private set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment