In this video, we continue the tutorials on the Jets Ruby Serverless Framework that adds Ruby support to AWS Lambda. We’ll cover something that is pretty important to know as a software developer: debugging. With Jets it’s pretty straightforward to look at the debugging logs both locally and remotely. Locally, the logs show up with the local running server. Remotely, the logs show up in CloudWatch Logs: available both on the AWS CloudWatch Logs console and the AWS Lambda console.
Here’s what the an error looks like in the Lambda console:
Summary of What We’ll Cover
- Breaking the App Locally by calling
raise "the roof"
- Checking out the log output locally
- Breaking the App Remotely by calling
raise "my kids"
- Deploy the App
- Checking out the log output on AWS CloudWatch logs and the AWS Lambda console
- For an Jets Introduction: Introducing Jets: A Ruby Serverless Framework.
- Also more info at: Jets documentation site.
Jets Tutorial Series
- Jets Tutorial An Introductory CRUD App Part 1
- Jets Tutorial Deploy to AWS Lambda Part 2
- Jets Tutorial Debugging Logs Part 3
- Jets Tutorial Background Jobs Part 4
- Jets Tutorial IAM Policies Part 5
- Jets Tutorial Function Properties Part 6
- Jets Tutorial Extra Environments Part 7
Also, here’s source code from tutorial: tongueroo/jets-tutorial-crud