0

Is there a way we can trigger AWS Lambda function from MS Teams?

I need a notification from the Microsoft Teams channel to flip to Pager Duty. Will he be able to grasp it through AWS Lamdba? On Teams I have all notifications about events from Gitlab and Github and integration in PG only supports merge request for GL and pull request for GH.

caprio
  • 197
  • 1
  • 3
  • 10
  • Do you need to trigger a lambda from Teams, or from a GL or GH event? If you're needing it from Teams, are you wanting a user to take some action in Teams to trigger the lambda? – Jason Wadsworth Mar 12 '21 at 22:33
  • @JasonWadsworth Ideally, it should be done without user integration in Teams. – caprio Mar 13 '21 at 19:15
  • Why not go directly from GH/GL to lambda? What is the value of having Teams in the middle of that? – Jason Wadsworth Mar 13 '21 at 21:37
  • @JasonWadsworth If it is possible to handle it directly from GH and GL, Teams is no longer needed. How to do it? – caprio Mar 14 '21 at 10:41
  • GH and GL are just making HTTP calls. You can have them call an API Gateway and back that with a lambda. – Jason Wadsworth Mar 14 '21 at 21:02
  • @caprio, are you still facing the issue. – Jagadeesh-MSFT Mar 24 '21 at 07:25
  • @Jagadeesh-MSFT I don't know how to start. So I have to create Github webhook, API Gateway, Lambda, SNS. – caprio Mar 24 '21 at 08:31
  • Could you please take a look at [sending messages to teams channel using webhook](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using)? Let me know if this doesn't help you. – Rama-MSFT Mar 30 '21 at 11:49

1 Answers1

0

Moving comments to answer section for better visibility.

You can also use this JSON to create cards containing rich inputs, such as text entry, multi-select, or picking a date and time. The code that generates the card and posts to the webhook URL can be running on any hosted service. These cards are defined as part of actionable messages, and are also supported in cards used in Teams bots and Messaging extensions.

Rama-MSFT
  • 147
  • 4