Create CodePipeline Notification Rule using CloudFormation

Viewed 1900

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

1 Answers
Related