2
votes

I have already setup AWS Codepipeline and notification rules manually. On that manual setup pipeline, I have set 4 events to trigger notification on SNS:

  • State Execution:
    • Succeeded
    • Failed
  • Pipeline Execution:
    • Succeeded
    • Failed

enter image description here

Now, I am trying to do the same thing with Terraform. But, unable to find the resource in Terraform registry.

How can I find out the Terraform resource to create the Codepipeline Notification Rules?

1

1 Answers

2
votes

The CP notifications are set using aws_codestarnotifications_notification_rule.

For exactly how to set event_type_ids up you have to refer to AWS docs: