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달 전273회 조회
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
전문가
검토됨 한 달 전
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠