sails-hook-aws

1.0.4 • Public • Published

Sails Hook AWS

Simple configuration and communication with AWS API in sails.

Getting Started

Install it via npm:

npm install sails-hook-aws --save

Configure config/aws.js in your project:

module.exports.aws = {
    // example
    accessKeyId: '',
    secretAccessKey: '',
    // ...
    ssm: {
        region: 'eu-west-1',
        // ...
    },
    sns: {
        region: 'eu-central-1',
        // ...
    },
};

Config is for aws-sdk.

Available methods

Executing methods with auto initialization:

sails.hooks.aws.service().method(params, function (err, data) {
    // process
});

or with promise

sails.hooks.aws.service().method(params).promise()
    .then(function (data) {
        // process
    })

All methods of all services in the official documentation.

Example

sails.hooks.aws.SES().cloneReceiptRuleSet(params).promise()
    .then(function (data) {
        // process
    })

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i sails-hook-aws

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

3.84 kB

Total Files

4

Last publish

Collaborators

  • sacrize