{"id":13821275,"url":"https://github.com/rewindio/aws-cloudwatch-slack-notifier","last_synced_at":"2025-05-16T12:33:03.100Z","repository":{"id":98848656,"uuid":"162605323","full_name":"rewindio/aws-cloudwatch-slack-notifier","owner":"rewindio","description":"Lambda to send notifications to Slack for Cloudwatch alarms","archived":true,"fork":false,"pushed_at":"2020-07-24T12:43:29.000Z","size":60,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-19T21:36:00.502Z","etag":null,"topics":["cloudwatch-alarms","lama","lambda","slack"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rewindio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-20T16:35:06.000Z","updated_at":"2023-01-28T09:37:04.000Z","dependencies_parsed_at":"2023-03-13T15:54:00.125Z","dependency_job_id":null,"html_url":"https://github.com/rewindio/aws-cloudwatch-slack-notifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Faws-cloudwatch-slack-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Faws-cloudwatch-slack-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Faws-cloudwatch-slack-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Faws-cloudwatch-slack-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rewindio","download_url":"https://codeload.github.com/rewindio/aws-cloudwatch-slack-notifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254530639,"owners_count":22086651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudwatch-alarms","lama","lambda","slack"],"created_at":"2024-08-04T08:01:19.003Z","updated_at":"2025-05-16T12:33:01.981Z","avatar_url":"https://github.com/rewindio.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# aws-cloudwatch-slack-notifier\nMake Cloudwatch alarms readable in Slack\n\n![Alama](https://raw.githubusercontent.com/rewindio/aws-cloudwatch-slack-notifier/main/images/lama-emoji.png)\n\nThe AWS Cloudwatch Slack Notifier (or Alama, Alamer) formats Cloudwatch alarms to be a little easier to read.\n\n# Installing and Configuring\n\n## Slack Setup\nBefore installing anything to AWS, you will need to configure an incoming webhook in Slack to handle the posts for you.  Slack has lots of docs on this.  Once you have the Slack webhook URL, grab it as you'll need it next.\n\nWithin the images folder of this repo is a lama emoji. This needs to be added to Slack as a custom emoji and named `:lama:`\n\n## AWS Setup\n* Take the Slack webhook URL and save it as an encrypted parameter in AWS Parameter store.\n* Get the Key ID from KMS which is used to encrypt your parameter store secret\n\n## Deploying to AWS\nBefore starting, you will need:\n* The [AWS CLI](https://aws.amazon.com/cli/) installed and default credentials configured\n* the [AWS SAM CLI](https://github.com/awslabs/aws-sam-cli) installed\n* An existing S3 bucket where the AWS Lambda code will be deployed to by SAM\n* This repo cloned\n\n1. Run the *build.sh* script.  This will just copy the needed files into the right locations\n2. Run the *deploy.sh* script like\n\n```\n./deploy.sh \u003caws CLI profile\u003e \u003cregion\u003e  \u003cs3 bucket to store lamba code in\u003e '\u003cslack channel\u003e' '\u003cssm parmater containing slack webhook' \u003ckms key ID to decrypt ssm parameter\u003e\n```\n\nFor Example:\n\n```\n./deploy.sh staging us-east-1 lambda-sam-staging '#alarms' '/devops/slack/incoming-webhook' 123456-1224-1234-5678-987654321\n```\n\ndeploy.sh uses AWS SAM to package the AWS Lambda functions and then deploys them to AWS.  Everything is deployed as a Cloudformation Stack in the specified region.\n\n## Cloudwatch Alarm Configuration\nThe template creates an SNS topic called `cloudwatch_to_slack` and subscribes the Lambda to it.  Any Cloudwatch alarms you want formatted and sent to the configured Slack channel should just be configured to notify this topic.  The Lambda will do the rest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewindio%2Faws-cloudwatch-slack-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frewindio%2Faws-cloudwatch-slack-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewindio%2Faws-cloudwatch-slack-notifier/lists"}