Skip to content

Instantly share code, notes, and snippets.

@mapbutcher
Created January 7, 2014 00:36
Show Gist options
  • Save mapbutcher/8292678 to your computer and use it in GitHub Desktop.
Save mapbutcher/8292678 to your computer and use it in GitHub Desktop.
Sample AWS s3 policy file which restricts access to a bucket to a specific IP
{
"Id": "Policy1389052986005",
"Statement": [
{
"Sid": "Stmt1389052982765",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::muppets-mapping-data/SA1_2011_AUST_CENTROID.csv",
"Condition": {
"IpAddress": {
"aws:SourceIp": "54.253.252.249/24"
}
},
"Principal": {
"AWS": [
"*"
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment