Toryas / Utils AWS
Utils for AWS services
This lib contains many wrapers for aws-sdk libs to work with AWS services....
To view full documentation visit GitHub Page
Install
for install run:
npm install --save toryas-utils-aws
Config
Exist two ways to use:
Config File
You can create a config file named toryas.config.js
in root of project.
You should create and export an object called AWS_CONFIG
and use de aws sdk config
the config file looks like :
const AWS_CONFIG = region: 'us-east-1' // you should set the region to use moduleexports = AWS_CONFIG
Pass AWS-SDK config in constructor
You can pass the aws config in constructor of util like this.
let config = region:'us-east-1'let athenaUtils = config
Usage
To use the lib, you only should import the util that you need.
const AthenaUtils = or // ... let params = query:'SELECT * FROM myTable limit 2' s3output:"s3://myBucket/somefolder/" let athenaUtils = ;athenaUtils