In this video tutorial, we’ll cover CloudWatch Log Events and how to connect them up to AWS Lambda Functions with Ruby on Jets. We’ll build a Jets project from scratch with the log_event declaration. We’ll deploy the application and test the CloudWatch Log event. We’ll show you how simple it is to get started with Ruby on Jets and CloudWatch Log Events.

Example

class LogJob < ApplicationJob
  log_event "/aws/lambda/hello"
  def report
    puts "event #{JSON.dump(event)}"
    puts "log_event #{JSON.dump(log_event)}"
  end
end

Hope you’ve enjoyed this article. If you find AWS Lambda, Serverless and Ruby on Jets interesting, please give it ⭐️ on GitHub. I’d appreciate it. 👍

Jets Events Series