egg-aws-s3
Install
$ npm i egg-aws-s3 --save
Usage
// {app_root}/config/plugin.jsexportsawsS3 = enable: true package: 'egg-aws-s3';
Configuration
// {app_root}/config/config.default.jsexportsawsS3 = client: convertAsync: true // plugin owner property, while this flag is true, s3 client object will add async function sslEnabled: false s3ForcePathStyle: true signatureVersion: 'v2' app: true agent: false;
see aws document contructor property for more client detail.
Example
appawsS3; // while convertAsync is enable, you can use async/await liketry const data = await appawsS3; console; catch err console;
see aws document method summary for APIs.
Questions & Suggestions
Please open an issue here.