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

How Serverless can help ChatOps become reality!

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.

SelinaM

February 15, 2019
Tweet

More Decks by SelinaM

Other Decks in Programming

Transcript

  1. 1 Selina Magnin at ServerlessDays Hamburg 2019 DevOps & Serverlesswith

    AWS How Serverless can help ChatOpsbecome reality!
  2. 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!
  3. 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!
  4. 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!
  5. 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!
  6. 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!
  7. 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!
  8. 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!
  9. 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!
  10. How to ChatOp? 16 Selina Magnin | How Serverless can

    help ChatOps become reality! + + + = Success!
  11. 19 Selina Magnin Master Student in Software Engineering [email protected] LinkedIn:

    Selina Magnin Thank you! How Serverless can help ChatOpsbecome reality! Horst
  12. How to ChatOp? 20 Deploy successful! Selina Magnin | How

    Serverless can help ChatOps become reality!
  13. How to ChatOp? 21 CodeBuild Trigger Selina Magnin | How

    Serverless can help ChatOps become reality!
  14. How to ChatOp? 22 Horst shows pull requests Selina Magnin

    | How Serverless can help ChatOps become reality!
  15. How to ChatOp? 23 Deploy Serverless Framework Service Name is

    unique per developer Selina Magnin | How Serverless can help ChatOps become reality!
  16. 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!
  17. How to ChatOp? 25 Choose a name and your Workspace.

    Create App Selina Magnin | How Serverless can help ChatOps become reality!
  18. 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!
  19. How to ChatOp? 28 Invoke URL, choose application/json paste secret

    key. Selina Magnin | How Serverless can help ChatOps become reality!
  20. How to ChatOp? 29 Select the invoke actions you prefer.

    Selina Magnin | How Serverless can help ChatOps become reality!
  21. 30 Selina Magnin Master Student in Software Engineering [email protected] LinkedIn:

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