Skip to content

Instantly share code, notes, and snippets.

@jyukutyo
Created December 4, 2018 07:25
Show Gist options
  • Save jyukutyo/808e844b611cf778658ca4f8a9304ac8 to your computer and use it in GitHub Desktop.
Save jyukutyo/808e844b611cf778658ca4f8a9304ac8 to your computer and use it in GitHub Desktop.
AWS S3で特定のバケットのみアクセスを許可する
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowGroupToSeeBucketListInTheConsole",
"Action": [
"s3:ListAllMyBuckets"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::*"
]
},
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::bucket_name",
"arn:aws:s3:::bucket-name/*"
]
},
{
"Effect": "Deny",
"Action": [
"s3:DeleteBucket",
"s3:CreateBucket"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment