Build Status

Iota

It will help Amazon Lambda developer to, - Create new function, - Deploy current code, - and to Rollback last deployment.

Installation

Add this line to your application’s Gemfile:

ruby gem 'iota'

And then execute:

$ bundle

Or install it yourself as:

$ gem install iota

Configuration

The gem uses aws-sdk-ruby to get an access to AWS api-es.

AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY have to be set within your environment.

export AWS_ACCESS_KEY_ID = [YOUR_AWS_ACCESS_KEY_ID] export AWS_SECRET_ACCESS_KEY = [YOUR_AWS_SECRET_ACCESS_KEY]

Usage & Basic Workflow

Create new Lambda Function

iota create my_function --runtime nodejs

Deploy current code to Remote

You have to be in a directory created by ‘create’ command with ‘iota.conf’ file.

Make some change on nodejs/python2.7 function and

iota deploy production or iota deploy development

Rollback last deploy

iota rollback production or iota rollback development

You can also check those result vie AWS console. (https://[YOUR_REGION].console.aws.amazon.com/lambda/)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ayemos/iota.

License

The gem is available as open source under the terms of the MIT License.