How Serverless can help ChatOps become reality!

A57748b2a95278c289f7f2fefaf2d186?s=47 SelinaM
February 15, 2019

How Serverless can help ChatOps become reality!

A ChatOps Showcase implemented with AWS Lambda. I am introducing you to Horst the chatbot who allows you to interact with other systems (e.g. github) easily using AWS Lambda, the serverless Framework and the slack API.

A57748b2a95278c289f7f2fefaf2d186?s=128

SelinaM

February 15, 2019
Tweet

Transcript

  1. 1.

    1 Selina Magnin at ServerlessDays Hamburg 2019 DevOps & Serverlesswith

    AWS How Serverless can help ChatOpsbecome reality!
  2. 3.
  3. 5.

    What is DevOps? 5 It is a terrible word that

    hides a great deal, and the struggle for the authority of interpretation does not yet seem to be over. Erkan Yanar Selina Magnin | How Serverless can help ChatOps become reality!
  4. 6.

    What is ChatOps? Communication – The basis of todays businesses

    Communication is the exchange or transmission of information. Transmission means that distances can be overcome. This leads to challenges we are confronted with in the day-to-day business of software development and operation. collaborate share trust understand build 6 Selina Magnin | How Serverless can help ChatOps become reality!
  5. 7.

    7 Services / Bullet Points One System Notify & Share

    Persist & Document Control & Interact ChatOps. Use the chat also as an interface and control mechanism for other systems. 7 What is ChatOps? Selina Magnin | How Serverless can help ChatOps become reality!
  6. 9.

    Why Serverless? 1 Web Integration over API-Gateway Fully Managed Service

    Rapid Development & Functions 2 3 Pay-as-you-go 4 Auto-Scaling 5 9 Selina Magnin | How Serverless can help ChatOps become reality!
  7. 10.

    How it works 1 Amazon S3 Static Web Hosting Amazon

    Cognito User Management Amazon DynamoDB Serverless Backend 2 3 Lambda and API Gateway. RESTful API 4 JSON Object Webhook 10 Selina Magnin | How Serverless can help ChatOps become reality!
  8. 11.

    ChatOps Flow Chart User pull request Webhook → POST push

    performed! generates bot- message sends bot-message to user deploy command “deploying…” bot-message performs deploy action “deploying…” message performs deploy 11 “deployed…” bot-message “deployed” message “deployed” Selina Magnin | How Serverless can help ChatOps become reality!
  9. 12.

    Architecture 12 app API Gateway Lambda DynamoDB Lex Code Build

    Cloud Watch SQS Used Tools: VS Code Selina Magnin | How Serverless can help ChatOps become reality!
  10. 14.

    Lessons Learnt 14 Automation first Simple Interaction Support of Tools

    Multitenancy First Stick to the DevOps-Processes! Selina Magnin | How Serverless can help ChatOps become reality!
  11. 16.

    How to ChatOp? 16 Selina Magnin | How Serverless can

    help ChatOps become reality! + + + = Success!
  12. 17.
  13. 18.
  14. 19.

    19 Selina Magnin Master Student in Software Engineering selina.magnin@gmail.com LinkedIn:

    Selina Magnin Thank you! How Serverless can help ChatOpsbecome reality! Horst
  15. 20.

    How to ChatOp? 20 Deploy successful! Selina Magnin | How

    Serverless can help ChatOps become reality!
  16. 21.

    How to ChatOp? 21 CodeBuild Trigger Selina Magnin | How

    Serverless can help ChatOps become reality!
  17. 22.

    How to ChatOp? 22 Horst shows pull requests Selina Magnin

    | How Serverless can help ChatOps become reality!
  18. 23.

    How to ChatOp? 23 Deploy Serverless Framework Service Name is

    unique per developer Selina Magnin | How Serverless can help ChatOps become reality!
  19. 24.

    How to ChatOp? 24 Click on Create New App to

    create your app. Got to the at https://api.slack.com/apps Selina Magnin | How Serverless can help ChatOps become reality!
  20. 25.

    How to ChatOp? 25 Choose a name and your Workspace.

    Create App Selina Magnin | How Serverless can help ChatOps become reality!
  21. 26.
  22. 27.

    How to ChatOp? 27 Go to Webhooks, then click Add

    webhook. Got to the settings of your repo Selina Magnin | How Serverless can help ChatOps become reality!
  23. 28.

    How to ChatOp? 28 Invoke URL, choose application/json paste secret

    key. Selina Magnin | How Serverless can help ChatOps become reality!
  24. 29.

    How to ChatOp? 29 Select the invoke actions you prefer.

    Selina Magnin | How Serverless can help ChatOps become reality!
  25. 30.

    30 Selina Magnin Master Student in Software Engineering selina.magnin@gmail.com LinkedIn:

    Selina Magnin Thank you! How Serverless can help ChatOpsbecome reality!