0.1.4 • Published 9 years ago

grunt-thin-aws v0.1.4

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

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.

0.1.4

9 years ago

0.1.3

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago