Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique S3 Buckets #15

Open
superacidjax opened this issue Nov 11, 2015 · 2 comments
Open

Unique S3 Buckets #15

superacidjax opened this issue Nov 11, 2015 · 2 comments

Comments

@superacidjax
Copy link

Given I have multiple users, each with a unique Account and each Account has a unique S3 bucket for that account.. How could I designate a specific S3 bucket not inside an initializer? For example, User A has a bucket called user_a_bucket and User XXZX has a bucket called user_xxzx_bucket. Obviously, those can't all go into an initializer. So what's the best strategy to handle that case, given it's not scalable to have each user's bucket names in an initializer.

Thanks!

@hiromipaw
Copy link

How about using folders inside the buckets for users? In different applications I have worked on, that was the approach. You could also create buckets on the fly with aws by just passing a new bucket name.
In that case that won't be passed in the initialiser, but in the app.

@superacidjax
Copy link
Author

Thanks for your comment, but this card is long finished. Each tenant has their own S3 bucket. Carrierwave allows one to override the initializer within an uploader.. So it was rather easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants