Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stardogventures/clubhouse-slack-lambda
AWS Lambda function to process Clubhouse webhooks and send messages to Slack when stories are complete
https://github.com/stardogventures/clubhouse-slack-lambda
aws aws-lambda clubhouse slack
Last synced: 23 days ago
JSON representation
AWS Lambda function to process Clubhouse webhooks and send messages to Slack when stories are complete
- Host: GitHub
- URL: https://github.com/stardogventures/clubhouse-slack-lambda
- Owner: stardogventures
- License: apache-2.0
- Created: 2019-07-23T00:12:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T04:15:36.000Z (about 2 years ago)
- Last Synced: 2024-11-22T15:37:23.157Z (3 months ago)
- Topics: aws, aws-lambda, clubhouse, slack
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clubhouse-slack-lambda
The Clubhouse Slack integration sends messages to Slack when stories are opened, but doesn't send a notification when stories are complete. Here's a quick way to hook that together that using AWS Lambda!
Suggestions, pull requests, comments, etc all welcome.
## Installation
1. Install a Slack Incoming Webhook app: http://slack.com/apps/A0F7XDUAZ-incoming-webhooks and note down the Webhook URL
2. From Clubhouse, create an API Token from Settings -> API Tokens
3. Create an AWS Lambda function named `clubhouse-webhook`
- Set the following environment variables for the Lambda:
- `SLACK_WEBHOOK_URL` - the Webhook URL from Slack
- `SLACK_CHANNEL` - name of the Slack channel to post to
- `CLUBHOUSE_API_TOKEN` - the Clubhouse API token
4. Push the code, including npm dependencies, to Lambda by running the following:```
cd clubhouse-webhook; yarn install; zip -r ../clubhouse-webhook.zip .; cd ..
aws lambda update-function-code --function-name clubhouse-webhook --zip-file fileb://clubhouse-webhook.zip
rm clubhouse-webhook.zip
```5. Create an AWS API Gateway POST endpoint that calls the Lambda function
6. From Clubhouse, create a Webhook from Integrations -> Webhooks and set the endpoint to the API Gateway URL
7. Move some stories to Completed, and watch the magic happen!