Learn Clould Application Development and DevOps

The Blackninja Blog

Expand your Cloud Application Development and DevOps knowledge with detailed tutorials and case studies.

AWS How to Build a Serverless Application on AWS using Ruby

Aliquet nec orci mattis amet quisque ullamcorper neque, nibh sem. At arcu, sit dui mi, nibh dui, diam eget aliquam. Quisque id at vitae feugiat egestas ac. Diam nulla orci at in viverra scelerisque eget. Eleifend egestas fringilla sapien.

What we are going to build

We are going to build a Single Page Application (SPA) hosted in S3 that’s able to query a relational database using ActiveRecord and then use the AWS SDK for Ruby to work with DynamoDB. What Serverless applications lack in infrastructure they gain in complexity, but with this guide you will be able to navigate the various services and techniques required to build a complete application in AWS without servers and using Ruby!

What if you don’t want to use Ruby?

We think Ruby is the best thing since nunchuks, but we get it, maybe you don’t. The good news is that the concepts and service configurations will be practically be the same between languages. So if you want to use JavaScript for example, you should only have to swap out the code for the most part. If you run into some troubles, let us know in the comments if you have any issues or something specific you’d like to see and we’ll be happy to add it to the dojo.

What we will cover

We are going to build a real world example, so we are going to get into a few services on AWS:

  • Aurora Serverless
  • Static Website Hosting using S3
  • AWS Lambda using the Ruby Runtime

Ready to get started? Lets get started!

Step 1: How to create an Aurora Serverless Cluster using the AWS Console

Step 2: Build, Package, and Deploy an AWS Lambda using the Ruby Runtime

Step 3: Build and Deploy a Vue.js Application using VueResource and AWS Lambda to S3