A
A
Alexander Balya2014-12-03 13:09:14
Amazon Web Services
Alexander Balya, 2014-12-03 13:09:14

How do I set up access to a single directory inside an Amazon S3 bucket?

I have an Amazon S3 account with multiple buckets. There are several directories in one bucket. The task is to set up access for the user to only one specific directory in a specific bucket with the ability to read / write.
I tried this one, but it doesn't work:

{
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:ListAllMyBuckets",
            "Resource": "arn:aws:s3:::*"
        },
        {
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::bucketname/catalog",
                "arn:aws:s3:::bucketname/catalog/*"
            ]
        }
    ]
}

I would be grateful if someone could tell me how to solve this problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question