This project demonstrates how to customize and send a custom notification message from AWS Step function to slack via AWS Chatbot.
- Configure AWS CLI and configured it with your credentials
- Should have an AWS account and have set up your AWS credentials
- Go to AWS Chatbot(https://console.aws.amazon.com/chatbot/) and perform OAuth to configure a slack workspace. Kindly follow this instructions in step 1
Clone this repo:
git clone https://github.com/pajaydev/aws-chatbot-custom-notifications-example.gitBuild this app using below commands:
npm install -g aws-cdk
npm install
npm run buildConfigure environment variables - Replace .env file in this project with slack workspace Id and channel Id
Synthesize the CloudFormation template using below command:
cdk synthDeploy the stack using below command:
cdk deployTrigger the deployed step function using below command
./scripts/trigger-step-function.shTo clean up, issue this command:
cdk destroyKindly create an issue if you face any issues
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template

