This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
forked from assertible/lambda-cloudwatch-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
53 lines (50 loc) · 2.19 KB
/
config.js
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
48
49
50
51
52
53
module.exports = {
kmsEncryptedHookUrl: process.env.KMS_ENCRYPTED_HOOK_URL, // encrypted slack webhook url
unencryptedHookUrl: process.env.UNENCRYPTED_HOOK_URL, // unencrypted slack webhook url
slackChannel: '#' + process.env.SLACK_CHANNEL, // slack channel to send a message to
slackUsername: process.env.SLACK_USERNAME, // "AWS SNS via Lamda", // slack username to user for messages
icon_emoji: process.env.ICON_EMOJI, // slack emoji icon to use for messages
orgIcon: process.env.ORG_ICON, // url to icon for your organization for display in the footer of messages
orgName: process.env.ORG_NAME, // name of your organization for display in the footer of messages
awsAccountMap: process.env.AWS_ACCOUNT_MAP, // JSON map of accountid:accountAlias
services: {
elasticbeanstalk: {
// text in the sns message or topicname to match on to process this service type
match_text: "ElasticBeanstalkNotifications"
},
cloudwatch: {
// text in the sns message or topicname to match on to process this service type
match_text: "AlarmName"
},
codepipeline: {
// text in the CloudWatch Event's source fields
match_text: "aws.codepipeline"
},
codebuild: {
// use text in the message rather than topicname to allow for messages coming from a CloudWatch Event Rule
match_text: "CodeBuild Build State Change"
},
codedeploy: {
// text in the sns message or topicname to match on to process this service type
match_text: "CodeDeploy"
},
elasticache: {
// text in the sns message or topicname to match on to process this service type
match_text: "ElastiCache"
},
autoscaling: {
// text in the sns message or topicname to match on to process this service type
match_text: "AutoScaling"
},
configcompliance: {
// text in the sns message or topicname to match on to process this service type
match_text: "Config Rules Compliance Change"
},
guarddutyfinding: {
match_text: "GuardDuty Finding"
},
health: {
match_text: "aws.health"
}
}
}