
SNS Events and AWS Lambda with Ruby on Jets
In this video tutorial, we’ll cover SNS Events and how to connect them up to AWS Lambda Functions with Ruby on Jets. We’ll explain what SNS Event are. Then we’ll build a Jets project from scratch with the sns_event declaration. We’ll deploy the application and test the SNS event. We’ll show you how simple it is to get started with Ruby on Jets and SNS Events.
Example
class HardJob
class_timeout 30 # must be less than or equal to the SNS Topic default timeout
sns_event "hello-topic"
def dig
puts "dig event #{JSON.dump(event)}"
end
end
- Ruby on Jets SNS Events Docs
- The full source code is available on GitHub: tongueroo/jets-sns-example
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. 👍