deployment/publisher.yaml [315:346]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Action:
              - sns:Subscribe
            Resource:
              Ref: NotificationTopic
      Topics:
        -
          Ref: NotificationTopic

  # also send the messages to a DLQ for retry
  DLQ:
    Type: 'AWS::SQS::Queue'
    Properties:
      KmsMasterKeyId:
        Ref: CMK
      KmsDataKeyReusePeriodSeconds:  86400
      MessageRetentionPeriod: 1209600

  DLQQPolicy:
    Type: 'AWS::SQS::QueuePolicy'
    Properties:
      Queues:
        - Ref: DLQ
      PolicyDocument:
        Statement:
          -
            Effect: Allow
            Principal:
              Service: events.amazonaws.com
            Action:
              - sqs:SendMessage
            Resource:
              Fn::GetAtt: DLQ.Arn
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



deployment/subscriber.yaml [233:265]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Action:
              - sns:Subscribe
            Resource:
              Ref: NotificationTopic
      Topics:
        -
          Ref: NotificationTopic


  # also send the messages to a DLQ for retry
  DLQ:
    Type: 'AWS::SQS::Queue'
    Properties:
      KmsMasterKeyId:
        Ref: CMK
      KmsDataKeyReusePeriodSeconds:  86400
      MessageRetentionPeriod: 1209600

  DLQQPolicy:
    Type: 'AWS::SQS::QueuePolicy'
    Properties:
      Queues:
        - Ref: DLQ
      PolicyDocument:
        Statement:
          -
            Effect: Allow
            Principal:
              Service: events.amazonaws.com
            Action:
              - sqs:SendMessage
            Resource:
              Fn::GetAtt: DLQ.Arn
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



