Skip to content

Support for mentions and links to CloudWatch logs #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ UNENCRYPTED_HOOK_URL=
AWS_FUNCTION_NAME=
AWS_REGION=eu-west-1
AWS_ROLE="arn:aws:iam::123456789123:role/lambda_exec_role"
# See message formatting for a guide on how to format mentions https://api.slack.com/docs/message-formatting
MENTION=<!channel>

# You can get AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY here: https://console.aws.amazon.com/iam/home#/users
# Click on user -> Security credentials -> Access keys -> Create access key
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_SECRET_ACCESS_KEY=
7 changes: 5 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ module.exports = {
kmsEncryptedHookUrl: process.env.KMS_ENCRYPTED_HOOK_URL, // encrypted slack webhook url
unencryptedHookUrl: process.env.UNENCRYPTED_HOOK_URL, // unencrypted slack webhook url

mention: process.env.MENTION,
channel: process.env.CHANNEL,

services: {
elasticbeanstalk: {
// text in the sns message or topicname to match on to process this service type
match_text: "ElasticBeanstalkNotifications"
},
cloudwatch: {
cloudwatch: {
},
codepipeline: {
// text in the sns message or topicname to match on to process this service type
Expand All @@ -27,4 +30,4 @@ module.exports = {
}
}

}
}
Loading