www.awsgood.com
CodeDeploy doesn’t come with a native way to integrate with third party services; so in order to integrate with a service you need to do a small workaround involving SNS and Lambda.
First you need to setup a SNS Topic “deployments” (Feel free to use your own topic name). Once that is done you need to hop on over to Lambda and find a SNS blueprint, I used sns-message-python with the event SNS and then set to the topic just created.
Next setup the basic execution role recommended by AWS (if you don’t have a role setup already).
Below is the code I used to send a message to slack using Lambda:
I used the following triggers:
That’s it now everytime you deploy using CodeDeploy you can have a tracking log via Slack.
I am a huge fan of integrating slack with everything from saltstack to monitoring alerts. That way everything is in one place!