Each tenant will have their own photo gallery where photos are stored on Amazon S3. When I see that S3 is relatively new, I’m looking for tips and tricks for managing this in terms of buckets, IAM groups / users, security, usage reports, and possibly billing.
As I can see, I have two options.
Option 1:
One main bucket. Each tenant has a subdirectory where their photos are stored. I will have one IAM group for the entire application and create a new IAM user for each tenant with access only to their subdirectory. In the future, if I want to know how much S3 space the tenant uses, will it be easy to report? Do I have to have a unique access key and AWS secret key for each tenant, even if they go in the same bucket?
Option 2:
Each tenant gets his own bucket. Each tenant would receive their own IAM user with access only to their bucket. Is this option better for reporting usage?
General issues:
- Are there any significant flaws for any option?
- Is there any other option that I don't know about?
- Can I report storage through IAM user activity or will this happen at the bucket level?
source
share