cloudwatch-alarm-to-ms-teams
cloudwatch-alarm-to-ms-teams copied to clipboard
How would I create a new Lambda function using the 2 handlers as a starting point?
Due to some restrictions, I am unable to use the AWS Serverless Repo's Deploy feature to deploy the function (after supplying the AlarmSNSTopicArn and MSTeams Webhook URL ofc).
So I am trying to replicate this function in my own Lambda function by copy-pasting over the handler code into a Node.js Lambda function.
However, the code is written in typescript rather than JS so how can I make a new Lambda function and utilize the source code for the handlers?
And where would I supply the AlarmTopicArn
and MSTeamsWebhookUrl
values if I were to set up a new Lambda function? Alternatively, where would I hardcode the values into the function handler?