Search code examples
amazon-web-servicesaws-code-deploy

AWS CodeDeploy Triggers running custom script


I believe AWS CodeDeploy Triggers only supports SNS notifications (currently). Is it possible to hook into the events, i.e. DEPLOYMENT_FAILURE, to run a custom bash/batch/ps script?

Motivation is to provide slack notifications of success/failure in one of our dev channels.


Solution

  • For your specific use case you should use a Lambda function. Amazon provides blueprints for Lambda functions that post to Slack, and you can subscribe Lambda functions to an SNS topic.