Reputation: 353
please suggest
Upvotes: 1
Views: 1314
Reputation: 269350
It sounds like your requirements are:
To do this, you will want to create a policy for each IAM User.
The policy would look something like:
{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:PutObject",
"s3:ListBucket"
],
"Resource":"arn:aws:s3:::Ahito-Bucket"
}
]
}
See: User Policy Examples - Amazon Simple Storage Service
An alternative method is to have all users share one bucket, but create a policy that limits users to their own directory.
See: IAM Policy Elements: Variables - AWS Identity and Access Management
Upvotes: 1