Skip to content

Instantly share code, notes, and snippets.

@brafales
Created August 16, 2019 13:15
Show Gist options
  • Save brafales/ef1df76d6de597518a7d3c679ef4a50a to your computer and use it in GitHub Desktop.
Save brafales/ef1df76d6de597518a7d3c679ef4a50a to your computer and use it in GitHub Desktop.
service: pipeline-notifications
custom:
pipeline_name: "staging"
provider:
name: aws
runtime: ruby2.5
stage: 'staging'
region: eu-west-1
functions:
pipeline_change:
handler: handler.pipeline_change
events:
- cloudwatchEvent:
event:
source:
- aws.codepipeline
detail-type:
- CodePipeline Pipeline Execution State Change
detail:
pipeline:
- ${self:custom.pipeline_name}
state:
- STARTED
- SUCCEEDED
- FAILED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment