Getting Started

First up, we need to install the Serverless Framework (if you haven't already), and create a new Ruby service:

npm install -g serverless
serverless create -t aws-ruby -p myservice

Navigate to your new service folder, and deploy the default hello world:

cd myservice
sls deploy
sls invoke -f hello

Testing Locally

Right now the framework only supports NodeJS, Python and Java in the local testing. (We hope to get that updated soon!) In the meantime, because Ruby is awesome, we have some great testing tools and capabilities right at our fingertips with some of the built-in testing tooling.

Let's say we want to run our local handler and make sure it returns the status code: