grunt-thin-aws

0.1.4 • Public • Published

grunt-thin-aws

Dependency Status devDependency Status

AWS SDK Wrapper for grunt task

Getting Started

This plugin requires Grunt.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-thin-aws --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-thin-aws');

The "aws" task

Overview

In your project's Gruntfile, add a section named aws to the data object passed into grunt.initConfig().

Config({
  aws: {
    debug: {
      options: {
        service: 'Lambda',
        action: 'invokeAsync',
        params: {
          functionName: 'hello-world',
          invokeArgs: JSON.stringify({
            hoge: 'piyo',
          })
        },
        success: function(data, done, retry) {
          if (data.Status != 202) {
            retry();
          }
          console.log(data);
          done();
        }
      }
    }
  },
})

License

Copyright (c) 2012-2015 k-kinzal. Licensed under the MIT license.

Dependencies (3)

Dev Dependencies (3)

Package Sidebar

Install

npm i grunt-thin-aws

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • k-kinzal