@conceptho/adonis-aws-sdk
v1.0.0
Published
Package with integration between the aws sdk and the Adonis Framework
Downloads
66
Keywords
Readme
Adonis AWS
Adonis AWS-SDK provides the aws-sdk as a singleton for the Adonis Framework
Instalation
- Add package:
$ npm i @conceptho/adonis-aws-sdk
or
$ yarn add @conceptho/adonis-aws-sdk
- Register Adonis AWS-SDK provider inside the start/app.js file
const providers = [
...
'@conceptho/adonis-aws-sdk/provider/',
...
]
- Configuring it inside the config/aws.js
'use strict'
const Env = use('Env')
module.exports = {
accessKeyId: Env.get('AWS_ACCESS_KEY_ID'),
secretAccessKey: Env.get('AWS_SECRET_ACCESS_KEY'),
region: Env.get('AWS_REGION')
}
- Using it
const AWS = use('Conceptho/AWS-SDK)
...