0

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.

Luke Hutton
  • 10,612
  • 6
  • 33
  • 58

1 Answers1

1

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.

Mark B
  • 183,023
  • 24
  • 297
  • 295
  • Thanks for help, terraformed the sns topic, subscription, deployment group triggers and lambda function: https://gist.github.com/lukehutton/74c47f7fd0dfdf08cc26d6e3403fd61a – Luke Hutton Apr 27 '16 at 01:37