Replies: 3 comments
-
Unfortunately this does not seem possible with the current exposed API Another solution could be to fork drive-s3 and basically make the |
Beta Was this translation helpful? Give feedback.
-
I haven't tested this.. but have you tried updating your config/drive.ts file:
Then in your code you can do:
|
Beta Was this translation helpful? Give feedback.
-
Yup, not possible right now. However, I am open for the change, so feel free to make a PR to allow a bucket at runtime. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is there any way to dynamically update the S3 bucket being used in the Drive package?
I understand that I can configure multiple disks in the config file, however, my use-case is that I'm building a micro service that interacts with AWS S3.
The entire application uses multiple buckets and I would like the S3 service to accept a bucket name as parameter when other services interact with it.
This is being done so that S3 has a single point of access and to improve security.
Any help is much appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions