Created
January 7, 2014 00:36
-
-
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
This file contains 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
{ | |
"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