1.0.4 • Published 3 years ago

sails-hook-aws v1.0.4

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

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

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago