This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
template.yaml
executable file
·47 lines (42 loc) · 1.44 KB
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
AWSTemplateFormatVersion: 2010-09-09
Description: >-
cloudwatch-alarm-to-ms-teams
Send CloudWatch Alarms to Microsoft Teams via an SNS topic.
Metadata:
AWS::ServerlessRepo::Application:
Name: cloudwatch-alarm-to-ms-teams
Description: Send CloudWatch Alarms to Microsoft Teams via an SNS topic.
Author: idealo Internet GmbH
Labels: [ 'cloudwatch','teams','notification' ]
HomePageUrl: https://github.com/idealo/cloudwatch-alarm-to-ms-teams
ReadmeUrl: README.md
SemanticVersion: 0.0.1
SourceCodeUrl: https://github.com/idealo/cloudwatch-alarm-to-ms-teams
SpdxLicenseId: MIT
LicenseUrl: LICENSE
Parameters:
AlarmTopicArn:
Type: String
Description: ARN of the SNS topic that receives the CloudWatch Alarms you want to forward to MS Teams.
MSTeamsWebhookUrl:
Type: String
Description: The URL of the MS Teams webhook to which you want to send alarm notifications.
Transform:
- AWS::Serverless-2016-10-31
Resources:
ForwardToTeamsFunction:
Type: AWS::Serverless::Function
Properties:
Description: Function for forwarding CloudWatch Alarms to Microsoft Teams.
Handler: dist/handlers/forward-to-teams.handler
Runtime: nodejs20.x
MemorySize: 128
Timeout: 10
Environment:
Variables:
TEAMS_WEBHOOK_URL: !Ref MSTeamsWebhookUrl
Events:
AlarmNotification:
Type: SNS
Properties:
Topic: !Ref AlarmTopicArn