API destinations to Microsoft Teams channel

0

I am trying to send notification to Microsoft teams channel from AWS. I am using API destinations in eventbridge. On the teams side, I created an "incoming webhook" and I have that url. For connections there are three options, Basic (Username/Password), OAuth Client Credentials, API Key. Since I only have the webhook url, I put some dummy content for API keys (should I be putting valid here?). With this configuration, I am trying to test sending a dummy message to team and I am unsuccessful. what am I doing wrong? please help.

Marvin
質問済み 4ヶ月前271ビュー
2回答
0

You should use the following architecture: Eventbridge rule -> lambda function -> teams

An AWS EventBridge Rule matches a specific set of AWS events and sends them to a target. The target is a Lambda function that sends the event to a Microsoft Teams Channel using an Incoming HTTP WebHook.

The lambda can execute this example of python code:

import pymsteams
myTeamsMessage = pymsteams.connectorcard("<Microsoft Webhook URL>")
myTeamsMessage.text("this is my text")
myTeamsMessage.send()
回答済み 4ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
0

This doesn't answer the question directly but have you considered using ChatBot which has teams integration built-in https://aws.amazon.com/blogs/aws/aws-chatbot-now-integrates-with-microsoft-teams/

profile pictureAWS
回答済み 4ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ