{"id":20847116,"url":"https://github.com/lvthillo/cdk-slack-chatbot","last_synced_at":"2026-03-17T18:05:10.032Z","repository":{"id":57848968,"uuid":"528515473","full_name":"lvthillo/cdk-slack-chatbot","owner":"lvthillo","description":"A CDK construct which creates an SNS AWS ChatBot (Slack) integration for CloudWatch alarms.","archived":false,"fork":false,"pushed_at":"2025-02-10T20:03:44.000Z","size":1520,"stargazers_count":7,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-04T18:54:18.492Z","etag":null,"topics":["aws","aws-chatbot","cdk"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvthillo.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-24T16:56:32.000Z","updated_at":"2025-02-17T14:57:11.000Z","dependencies_parsed_at":"2024-10-12T23:31:48.398Z","dependency_job_id":"52c1fc79-c149-4b43-acef-280276fba8d8","html_url":"https://github.com/lvthillo/cdk-slack-chatbot","commit_stats":{"total_commits":220,"total_committers":4,"mean_commits":55.0,"dds":"0.11363636363636365","last_synced_commit":"2f0367e5241c95c880ffe5fec1778f28ad0820bd"},"previous_names":["lvthillo/cdk-cloudwatch-alarm-chatbot"],"tags_count":199,"template":false,"template_full_name":null,"purl":"pkg:github/lvthillo/cdk-slack-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fcdk-slack-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fcdk-slack-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fcdk-slack-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fcdk-slack-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvthillo","download_url":"https://codeload.github.com/lvthillo/cdk-slack-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fcdk-slack-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30628405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aws","aws-chatbot","cdk"],"created_at":"2024-11-18T02:19:00.022Z","updated_at":"2026-03-17T18:05:10.002Z","avatar_url":"https://github.com/lvthillo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version](https://badge.fury.io/js/cdk-slack-chatbot.svg)](https://badge.fury.io/js/cdk-slack-chatbot)\n[![PyPI version](https://badge.fury.io/py/cdk-slack-chatbot.svg)](https://badge.fury.io/py/cdk-slack-chatbot)\n![Release](https://github.com/lvthillo/cdk-slack-chatbot/workflows/release/badge.svg)\n\n# cdk-slack-chatbot\nA CDK construct which creates an SNS AWS ChatBot (Slack) integration for CloudWatch alarms, AWS Config rules, ...\\\nMore information on how to use this construct can be found [here](https://github.com/lvthillo/cdk-slack-chatbot/blob/main/API.md).\n\n# Architecture\n# \u003cimg width=\"987\" alt=\"Screen Shot 2022-10-19 at 16 54 43\" src=\"https://user-images.githubusercontent.com/14105387/196726730-5431564e-c6c1-4521-af4b-1891de709805.png\"\u003e\n\n# Example\nIn this example we create a CloudWatch alarm which integrates with our construct.\n```ts\nimport * as cdk from 'aws-cdk-lib';\nimport * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';\nimport * as cloudwatch_actions from 'aws-cdk-lib/aws-cloudwatch-actions';\nimport * as sqs from 'aws-cdk-lib/aws-sqs';\nimport { CdkSlackChatBot } from 'cdk-slack-chatbot';\n\nexport class CdkDemoStack extends cdk.Stack {\n  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {\n    super(scope, id, props);\n\n    const queue = new sqs.Queue(this, 'HelloCdkQueue', {\n      visibilityTimeout: cdk.Duration.seconds(300)\n    });\n\n    const qMetric = queue.metric('ApproximateNumberOfMessagesVisible');\n\n    const alarm = new cloudwatch.Alarm(this, 'Alarm', {\n      metric: qMetric,\n      threshold: 100,\n      evaluationPeriods: 3,\n      datapointsToAlarm: 2\n    });\n\n    const slackIntegration = new CdkSlackChatBot(this, 'SlackIntegration', {\n      topicName: 'slack-alarm',\n      slackChannelId: 'xxx',\n      slackWorkSpaceId: 'yyy',\n      slackChannelConfigName: 'slack',\n    });\n\n    alarm.addAlarmAction(new cloudwatch_actions.SnsAction(slackIntegration.topic));\n  }\n}\n```\n\nTest Alarm:\n```\n$ aws cloudwatch set-alarm-state --alarm-name \"xxx\" --state-value ALARM --state-reason \"testing purposes\"\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvthillo%2Fcdk-slack-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvthillo%2Fcdk-slack-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvthillo%2Fcdk-slack-chatbot/lists"}