nodejs-aws-utils
Utilities function to work with AWS
nodejs-aws-utils makes life easier in Amazon Web Services by providing the helpers for CRUD s3 bucket, exporting/importing DynamoDB data, creating CloudFront distribution and all functions will return a promise.
Installation
The easiest way to use nodejs-aws-utils is to install it from npm.
npm i nodejs-aws-utils --save
Configuration
Using default configuration:
const awsUtils = ;awsUtils;
Using a file configuration:
const awsUtils = ;awsUtils;
DynamoDB
Import DynamoDB data from CSV file:
const awsUtils = ;awsUtilsdynamoDB ;
Export CSV data to CSV file:
const awsUtils = ;awsUtilsdynamoDB ;
S3 buckets
List buckets:
awsUtilsbucket ;
Create s3 bucket:
awsUtilsbucket ;
Upload file to s3 bucket:
awsUtilsbucket ;
CloudFront
Create distribution by default configuration:
awsUtilscloudFront ;
Create distribution with parameters:
awsUtilscloudFront ;
Get distribution's default configuration:
awsUtilscloudFront;
Set distribution's configuration:
awsUtilscloudFront;
Release history
1.1.0 - 13/10/2018
- Import/export the DynamoDB data
- Create, list a S3 Bucket and upload the files there
- Create the CloudFront Distribution
Meta
Ymese Team - Ymese.com
Distributed under the APACHE license. See LICENSE for more information.