Blossom Logo Deploy your apps with Heroku-like simplicity using Blossom See Your Savings
BoltOps Logo
BoltOps Blog
S3 Events and AWS Lambda with Ruby on Jets header image

S3 Events and AWS Lambda with Ruby on Jets

Tung Nguyen Tung Nguyen · February 22, 2019 · 2 min read

In this video tutorial, we’ll cover S3 Events and how to connect them up to AWS Lambda Functions with Ruby on Jets. We’ll explain what S3 Events are. We’ll discuss the design approach that Jets took by adding an SNS topic to the flow. Then we’ll build a Jets project from scratch with the s3_event declaration. We’ll deploy the application and test the s3 event. We’ll show you how simple it is to get started with Ruby on Jets and S3 Events.

Example

class S3Job < ApplicationJob
  s3_event "my-bucket" # new or existing bucket
  def process
    puts "event #{JSON.dump(event)}"
    puts "s3_event #{JSON.dump(s3_event)}"
    puts "s3_object #{JSON.dump(s3_object)}"
  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

Blossom Logo
Deploy Your Apps with Ease

Blossom lets you deploy to your own servers with Heroku-like simplicity. Connect any cloud provider and we'll handle the rest. Save time and money with Blossom.

Join a group of good-looking folks who get free email updates from BoltOps.