DEV Community

Discussion on: Creating a CloudWatch Log custom integration for Slack using AWS Lambda

Collapse
 
santoshah profile image
Santosh • Edited

Thanks for this awesome tutorial.

Is it possible to trigger this cloudwacth Logs only when the codebuild completes ? Right now the message is spamming the channel. the logs get updated everytime until the codebuild is running. How do I trigger only when codebuild completes (either failed or succeed)

Collapse
 
agusrdz profile image
Agustín Rodríguez

I think it should be doable but could be needed to review the event log and make the adjustments to only trigger it if is codebuild event and if the result is succeed.