Gán quyền một bucket cho một user

Gán quyền loằng ngoằng trên giao diện (console), thấy nó ghi full quyền rồi mà khi làm việc với thư mục con lại lỗi, hoá ra full quyền trên giao diện mới được như này:

{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “Stmt1491906008000”,
“Effect”: “Allow”,
“Action”: [
“s3:*”
],
“Resource”: [
“arn:aws:s3:::kamaxuta”
]
}
]
}

Phải sửa thành như này mới thực sự full quyền:

{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “statement1”,
“Effect”: “Allow”,
“Action”: [
“s3:GetBucketLocation”,
“s3:ListAllMyBuckets”
],
“Resource”: “arn:aws:s3:::*”
},
{
“Sid”: “Stmt1491906008000”,
“Effect”: “Allow”,
“Action”: [
“s3:*”
],
“Resource”: [
“arn:aws:s3:::kamaxuta”,
“arn:aws:s3:::kamaxuta/*”
]
}
]
}

 

Leave a Reply