Skip to content

A simple serverless app to monitor Stack Overflow in Slack

Notifications You must be signed in to change notification settings

aydrian/stackOverflowMonitor

Repository files navigation

Deploy

Stack Overflow Monitor

A simple serverless app to monitor Stack Overflow in Slack.

This Pulumi application will create a DynamoDB table and a Lambda Function that will run every 20 minutes, querying StackOverflow, saving the results to the database, and outputting them to a Slack channel.

Example of notification in Slack

Pre-requisites

Deploying and running the Pulumi App

  1. Create a new stack:

    $ pulumi stack init stackOverflowMonitor
  2. Set the AWS region:

    $ pulumi config set aws:region us-east-1
  3. Set the Slack channel to post to

    $ pulumi config set slack:channel #stack-overflow
  4. Set the Slack Webhook Url

    $ pulumi config set slack:webhookUrl https://your.url
  5. Set your Stack Exchange API Key as a secret

    $ pulumi config set --secret stackOverflow:apiKey YOUR_API_KEY
  6. Set the Keyword you are interested in monitoring

    $ pulumi config set stackOverflow:searchKeyword pulumi
  7. Restore NPM modules via npm install or yarn install.

  8. Run pulumi up to preview and deploy changes

Clean up

  1. Run pulumi destroy to tear down all resources.

  2. To delete the stack itself, run pulumi stack rm. Note that this command deletes all deployment history from the Pulumi Console.

Based on stackOverflowMonitor by Nicolas Grenié (@picsoung 🐼)

About

A simple serverless app to monitor Stack Overflow in Slack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published