Created
December 4, 2018 07:25
-
-
Save jyukutyo/808e844b611cf778658ca4f8a9304ac8 to your computer and use it in GitHub Desktop.
AWS S3で特定のバケットのみアクセスを許可する
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
{ | |
"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