title: Invoke Lambda function on CodePipeline Stage or Action Failure
body: <p>When CodePipeline creates production assets we're required to file a Request For Change. </p>
  
  <p>Opening the RFC when entering the Production Stage and closing the RFC on a successful Production build/test is easy enough by firing Lambdas. The question comes when a CodePipeline Stage or Test Action fails.</p>
  
  <p>How to fire Lambda when a CodePipeline Stage fails?
  Similarly how to fire a Lambda when a CodePipeline Test Action fails?</p>
  
  <p><a href="https://github.com/byu-oit-appdev/iac/tree/master/cloudformation/codepipeline" rel="nofollow noreferrer">Example cloudformation</a> </p>