You will see I have an s3 Bucket on Amazon, with the following structure:
Carpeta "Home" :
- Usuario1
- Usuario2
- Usuario3
I want to create a specific IAM user for each user, and in this way, each user has specific access to their own folder and subfolders.
I understand that I would have to create a different user for each user to access their respective folder, the problem is that how would the JSON of the privileges be?
I currently use this, but that gives access to all the folders, what I need is to specify only 1 folder with all its files and subfolders:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::mibucket"
]
},
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
}
]
}
I have already tried in many ways following the Amazon manuals, but nothing else does not feel like it: (
Thanks for your help. Greetings.
UPDATED:
With the help of Leonardo I have managed to do the following:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::mibucket"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::mibucket/home/Usuario/*"
]
}
]
}
However, the previous code allows me to access the folder (specifying the path of course), but it does not let me upload files: (