Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introducing a Catalog of Reusable Serverless Fu...

Introducing a Catalog of Reusable Serverless Functions

Ever dreamed of picking a ready-to-use lambda from an open source catalog of reusable functions? Meet StackStorm Exchange. It has been serving actions to DevOps StackStorm community for years, boasting hundreds of integrations and thousands of actions. Now you can use these actions as reusable functions in the Serverless framework.

You will learn how to turn an action from StackStorm Exchange into an AWS Lambda with few lines in serverless.yml, look under the hood of how the plugin does the magic, and be encouraged to contribute your integrations.

Slides for the talk at Serverless meetup @ Heavybit May 01/2018 https://www.meetup.com/Serverless/events/249671213/

Avatar for Dmitri Zimine

Dmitri Zimine

May 01, 2018
Tweet

More Decks by Dmitri Zimine

Other Decks in Programming

Transcript

  1. Welcome StackStorm Exchange! • Open Source Catalog of Reusable functions

    • Since 2014, 160+ integrations, 6,500+ actions • Integrated with @goserverless framework What is it? Where did it come from?
  2. in 30 seconds Actions Sensors Workflows Rules IT Domains Config

    mgmt Storage Networking Containers Cloud Infra Monitoring Ops Support Triggers Calls For details: StackStorm.com
  3. StackStorm is like … Actions Sensors Workflows Rules Step Functions

    AWS Lambda open-source born 2013 server-full
  4. StackStorm Exchange Facts • 140 integration packs, 6,500+ actions •

    Open Source • Mature – packs since 2014, Exchange site launched 2016 • Heavily used and contributed • Strong community
  5. What if I could •Reuse Exchange integrations in #Serverless projects?

    •Turn actions to Lambda functions? •Make it easy?
  6. Set up a new serverless project $ mkdir stormless $

    cd stormless $ npm init ... $ sls plugin install \ --name serverless-plugin-stackstorm ... $ vim serverless.yml
  7. shw Action from StackStorm Exchange, {pack}.{action_name} Input transformation, with Jinja

    templates Output transformation, with Jinja templates Handy for use in StepFunctions Plugin reference Pack-level configuration parameters.
  8. Just Do It ! • Give it a try •

    Run this demo: dzimine/stormless • Follow the 4-episode tutorial: https://goo.gl/EyGGVE • Share feedback • forum.serverless.com or forum.stackstorm.com • Twitter: @Stack_Storm, @goserverless, @dzimine • Contribute back to Exchange • exchange.stackstorm.org • More actions, more functions!
  9. Resources • StackStorm Exchange https://exchange.stackstorm.org • serverless-plugin-stackstorm https://github.com/StackStorm/serverless-plugin-stackstorm • Building

    a community sign-up app with Serverless, StepFunctions, and StackStorm Exchange https://goo.gl/EyGGVE • This talk, demo code: https://github.com/dzimine/stormless • Questions, follow up thoughts: twitter: @dzimine