Skip to content

Instantly share code, notes, and snippets.

@bluerabbit
Created December 17, 2012 08:03
Show Gist options
  • Save bluerabbit/4316542 to your computer and use it in GitHub Desktop.
Save bluerabbit/4316542 to your computer and use it in GitHub Desktop.
AWS IAMで特定のbucketにのみアクセス可能なPermissions Policy https://console.aws.amazon.com/iam/home 参考) http://blog.dateofrock.com/2011/04/s3iam.html
{
"Statement": [
{
"Sid": "Stmt1355727169912",
"Action": [
"s3:ListAllMyBuckets"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::*"
},
{
"Sid": "Stmt1355727169913",
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::your_access_bucket_name"
},
{
"Sid": "Stmt1355727169914",
"Action": "s3:*",
"Effect": "Allow",
"Resource": "arn:aws:s3:::your_access_bucket_name/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment