0.0.4 • Published 7 years ago

ellipsis-aws-helper v0.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

npm-ellipsis-aws-helper

An Npm package to help interacting with the AWS APIs.

Installation

$ npm install ellipsis-aws-helper@latest --save

Usage

"use strict";

const EllipsisAws = require('ellipsis-aws-helper');
const awsHelper = new EllipsisAws.Helper();

var region = process.env.AWS_REGION;

if (!awsHelper.validateRegion(region)) {
  console.log(`Unknown region '${region}'`);
}

awsHelper.validateAccessToApi()
.then((result) => {
  // do something awesome!
})

Configuration

By default the Helper builds its own AWS object. If you prefer configuring and passing to it you can do so:

"use strict";

var AWS = require('aws-sdk');
AWS.config.update({
  AWS_PROFILE = "my-profile-name",
  AWS_REGION = "us-east-1"
})

const EllipsisAws = require('ellipsis-aws-helper');
const awsHelper = new EllipsisAws.Helper({
  AWS: AWS
});
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago