Skip to content

pajaydev/aws-chatbot-custom-notifications-example

Repository files navigation

AWS Chatbot Custom Notification

This project demonstrates how to customize and send a custom notification message from AWS Step function to slack via AWS Chatbot.

Prerequisite

Setup

Clone this repo:

git clone https://github.com/pajaydev/aws-chatbot-custom-notifications-example.git

Build this app using below commands:

npm install -g aws-cdk
npm install
npm run build

Configure environment variables - Replace .env file in this project with slack workspace Id and channel Id

Deployment

Synthesize the CloudFormation template using below command:

cdk synth

Deploy the stack using below command:

cdk deploy

Trigger a Notification

Trigger the deployed step function using below command

./scripts/trigger-step-function.sh

Result

Clean Up

To clean up, issue this command:

cdk destroy

Troubleshooting

Kindly create an issue if you face any issues

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

Send custom notification from AWS Step function to Slack using AWS Chatbot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published