Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create CodePipeline Notification Rule using CloudFormation

I'm building a CodePipeline stack using CloudFormation. Everything works flawlessly. One element I am unable to add is the Notification rule using CloudFormation Template and I cannot find any documentation on it apart from the console method.

I tried adding a NotificationArn like this but this doesn't work as I found out it is specific to Manuapproval action.

CodePipelineSNSTopic:
Type: AWS::SNS::Topic
Properties:
  Subscription:
    - Endpoint: !Ref Email
      Protocol: email
.
.
.
- Name: S3Source
      Actions:
        - Name: TemplateSource
          ActionTypeId:
            Category: Source
            Owner: AWS
            Provider: S3
            Version: '1'
          Configuration:
            S3Bucket: !Ref 'S3Bucket'
            S3ObjectKey: !Ref 'SourceS3Key'
            NotificationArn: !Ref CodePipelineSNSTopic
          OutputArtifacts:
            - Name: TemplateSource
          RunOrder: '1'

Is there a documentation that I am unable to find? Please help me

like image 969
Red Bottle Avatar asked Nov 01 '25 09:11

Red Bottle


1 Answers

CodePipeline notifiacations are handled and setup using

  • AWS::CodeStarNotifications::NotificationRule

The events supported and which should be used in the rule are described in:

  • Events for Notification Rules on Pipelines
like image 93
Marcin Avatar answered Nov 03 '25 01:11

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!