• Stars
    star
    143
  • Rank 257,007 (Top 6 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Automation scripts to help run Ruby 2.1 programs on AWS Lambda

Ruby on AWS Lambda

Why?

Because:

  • AWS Lambda has immense potential and interesting implications
  • AWS Lambda doesn't officially support Ruby, as yet
  • Ruby has immense potential and interesting implications as well!

How?

By:

  • packaging a Ruby binary with our app
  • Lambda executes a simple NodeJS program that shells out to our code
    • see index.js
  • Ruby executes your code
    • yes, Bundler works! (within reason)
  • Hello World is about 8MB, leaving you 42MB of room to get crazy
    • (no native gems)

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

More Repositories

1

octocat-3d

I wanted an octocat toy but couldn't find one. So I made one. Sorta.
24
star
2

cartography

A 2D, grid-based map editor project for teaching myself Cappuccino.
JavaScript
9
star
3

minitest-spec-php

A closure-based testing framework for PHP, based around the ideas in Ruby's MiniTest::Spec.
PHP
6
star
4

sinatra-cms

Yep.
Ruby
6
star
5

node-autotest

A skeleton Javascript project with an auto-build, auto-test harness implemented with NodeJS
JavaScript
6
star
6

javascript_patterns

A Javascript pattern library
JavaScript
4
star
7

remix-south-2011

The "sandbox" code I used in my Canvas talk at the reMIX South 2011 conference.
JavaScript
4
star
8

scorpion-bot

A giant, robotic scorpion with gatling guns hanging off of it.
4
star
9

board_game_geek

BoardGameGeek.com scraper
Ruby
4
star
10

video-thumbnailer

Tiny Flex app for previewing a video and POSTing jpg thumbnails to an arbitrary back-end.
JavaScript
3
star
11

four-corners

AT&T Mobile Hackathon 2011 app.
Ruby
3
star
12

canvix

An HTML5 Canvas-based renderer utilizing the transformation stack
JavaScript
3
star
13

sphere_test

Just playing with Sphere between two computers
JavaScript
2
star
14

as3-base

First stab at a base Actionscript project with open source tools (Ruby, Rake, etc.)
ActionScript
2
star
15

miniablo

A text-based rpg tutorial
Ruby
2
star
16

protomq

Dynamic MQTT Broker that speaks protobufs
JavaScript
2
star
17

mage-knight-mapper

Browser application that creates dynamic maps for Mage Knight: Board Game
JavaScript
2
star
18

mandrill

A rubygem for interacting with the Mandrill API
Ruby
2
star
19

lorennorman

About me!
1
star
20

spherical-racing

A racing game built around a sphere physics trick
GDScript
1
star
21

nanowrimo

1
star
22

google-code-jam-2011

1
star
23

sinatra-rspec-2-template

This template is for rspec 2.x
Ruby
1
star