let users create their own bucket and have full permission to it

I have a situation where I want a user to be able to create their own buckets and have full permission to their bucket and that’s all.

Is that possible? I was having issues finding the proper permission levels.

Thanks.


Related discussions:

Take a look through the S3 policy permissions. You can create a custom policy that grants/denies specific privileges for users to create a bucket, and then modify that policy to grant full access to that particular bucket. Not sure if you can do this dynamically out of the box (ie, users can create buckets and automatically have full control over that bucket) or not.

You can use context keys for dynamic access. S3 supports bunch of context keys

S3 bucket default permissions are account level only.
For your use case I would limit users to only be able to create buckets with a name including text unique to their username:

Example Resource level statement:
“Resource”:[“arn:aws:s3:::myfootsmells”]

This is exactly how data gets exposed via S3

Let them have their own accounts and make them responsible. If that data needs to be private and falls on you this is where accidents happen. They want buckets? Nothing preventing that from a new account.

This is a bad idea. Do not do this.

Keep in mind that there is a maximum of 100 S3 buckets per account. I would instead give them access to a specific folder in a bucket by restricting file names that they can upload.

That makes sense. Thanks.

By default

Sounds like a risky strategy. You could instead allow your users to create a bucket via a pre-defined CloudFormation template, that way you control the policies applied, i.e. ensuring it’s not public, unencrypted etc.

Why not just use sub paths in a bucket? That way you could have some UI/script that auths your user, adds a new folder in a bucket and assigns them an IAM user and a policy to their subpath only?

definitely an option as well. i always like to learn other ways of accomplishing similar tasks.