lorennorman / ruby-on-lambda

Automation scripts to help run Ruby 2.1 programs on AWS Lambda
MIT License
143 stars 27 forks source link

Ruby on AWS Lambda

Why?

Because:

How?

By:

Usage

  1. Sign up for Amazon AWS
  2. Get access to Amazon S3
  3. Get access to Amazon Lambda
  4. Create an IAM account with access to S3 and Lambda
  5. Install the aws cli tools
  6. Set up an AWS profile in ~/.aws/credentials for the account created above
  7. Change the variables in deploy.sh to match your app and AWS settings
  8. Ensure you're using ruby 2.1.x in this directory
  9. Ensure you're using Bundler version 1.9.9
  10. Add any gems you need to app/Gemfile
  11. cd app and run bundle install from there (you need a Gemfile.lock)
  12. edit app/app.rb with your application code
  13. run ./deploy.sh linux-x86_64
  14. test your Lambda Function!
    • i've been using the web console for testing