https://github.com/nitrag/slack-sns
Send an AWS CloudWatch Alarm to Slack via SNS + Webhook
https://github.com/nitrag/slack-sns
aws-sns aws-sns-subscriptions slack-app
Last synced: 7 months ago
JSON representation
Send an AWS CloudWatch Alarm to Slack via SNS + Webhook
- Host: GitHub
- URL: https://github.com/nitrag/slack-sns
- Owner: nitrag
- License: mit
- Created: 2023-08-31T13:21:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T17:09:47.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T10:45:57.735Z (9 months ago)
- Topics: aws-sns, aws-sns-subscriptions, slack-app
- Language: TypeScript
- Homepage:
- Size: 407 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack App: Amazon CloudWatch SNS (HTTPS)
This Slack app automation will provide a Webhook (HTTPS URL) which you can configure an AWS SNS (Topic Subscription).
Allowing Cloudwatch Alarms to be posted to your Slack Channel in a human readable format._Please note that the features in this project requires that the workspace be part of
[a Slack paid plan](https://slack.com/pricing).__PRs welcome!_
---
Preview:
### Install the Slack CLI
To use this sample, you need to install and configure the Slack CLI. Step-by-step instructions can be found in our
[Quickstart Guide](https://api.slack.com/automation/quickstart).### Deployment
Start by cloning this repository:
```bash
# Install the Slack CLI and login
slack login# Create the App for your organization
slack create CloudWatch-SNS# Register the trigger (Required?)
slack trigger create --trigger-def "./triggers/webhook_trigger.ts"# If you want to test locally:
# 1) create an `.env` file
# 2) Fill in the appropriate values for Channel ID and AWS Region
slack run# Deploy and receive your webhook URL
slack deploy# Register your CHANNEL_ID to send the notification to
slack env add CHANNEL_ID C00X00XXXXX# At this point you can plug the webhook into Topic Subscription,
# this integration will auto-confirm the subscription if setup correctly.
```