-
Notifications
You must be signed in to change notification settings - Fork 4
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
Features add bucket controller and signed urls to file:getUrl #26
Conversation
745fa7e
to
9a12c6c
Compare
…eio/kuzzle-plugin-s3 into feat-add-bucket-controller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job extracting this 👍
Also, if this PR is a draft then it should be a real Github draft instead of adding DRAFT
in the name
|
||
const params = { Bucket: bucketName }; | ||
|
||
await this.s3.createBucket({ ...params, ...bucketOptions }).promise(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it is intended to allow user use aws-sdk s3 options
lib/S3Plugin.js
Outdated
if (err.code === 'NotFound') { | ||
return false; | ||
} | ||
throw new this.context.errors.InternalError(err.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Is this PR intended to be merged in master at some point ? if not what would be the blocking points ? |
FYI I've had to add some stuff and I'm working on an update branch to handle bucket creation use cases properly: https://github.com/matgardon/kuzzle-plugin-s3/tree/feat/add-s3-bucket-controller |
I'll take a look to it @matgardon |
finally closed due to #33 wich's way more advanced |
What does this PR do?
Features :
Handle Signed URL to get files
Add Bucket controller :
/**
*/
/**
*/
-->
/**
*/
Boyscout
Add region to default config