2

I am looking to add notifications to a build pipeline I am deploying in AWS via Terraform. I cannot seem to locate the resource which creates the status notifications in CodeBuild. Can someone let me know which resource this is?

Screenshot of the AWS CodeBuild administrative console, with an arrow annotation pointing at the "Notify" button associated with a particular project.

icasimpan
  • 1,253
  • 3
  • 16
  • 28
  • Welcome to StackOverflow! Tip for the future : try to embed pictures directly into question as it is easier for readers and there is less risk that picture would be deleted from CDN. – GrayCat Dec 20 '19 at 20:59
  • If you update your question to have specific details of the notification I can update my answer below with an example code block. – hephalump Dec 21 '19 at 17:17

1 Answers1

1

You’ve not mentioned what sort of notification you are looking to create, so I won’t be able to provide some sample code, however, as per the AWS docs here, you can detect state changes jn CodePipeline using Cloudwatch events.

You can find the Terraform reference for CloudWatch Event Rules here, and you can follow the docs to create a resource that monitors CodePipeline for state changes using CloudWatch Events Rules.

hephalump
  • 5,860
  • 1
  • 22
  • 23