cloudformation/consumer.yaml [366:396]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  DracoLogGroup:
    Type: AWS::Logs::LogGroup
    Properties:
      LogGroupName: !Sub "/aws/lambda/${SnapshotHandlerLambda}"
      RetentionInDays: 90

  CloudWatchErrorMetric:
    Type: AWS::Logs::MetricFilter
    Properties:
      FilterPattern: "ERROR"
      LogGroupName: !Ref DracoLogGroup 
      MetricTransformations:
        - MetricValue: "1"
          DefaultValue: 0
          MetricNamespace: "Draco/SnapshotHandler"
          MetricName: "ErrorCount"

  CloudWatchWarnMetric:
    Type: AWS::Logs::MetricFilter
    Properties:
      FilterPattern: "WARN"
      LogGroupName: !Ref DracoLogGroup
      MetricTransformations:
        - MetricValue: "1"
          DefaultValue: 0
          MetricNamespace: "Draco/SnapshotHandler"
          MetricName: "WarnCount"

  Wait4Copy:
    Type: AWS::CloudFormation::Stack
    Properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cloudformation/producer.yaml [361:391]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  DracoLogGroup:
    Type: AWS::Logs::LogGroup
    Properties:
      LogGroupName: !Sub "/aws/lambda/${SnapshotHandlerLambda}"
      RetentionInDays: 90

  CloudWatchErrorMetric:
    Type: AWS::Logs::MetricFilter
    Properties:
      FilterPattern: "ERROR"
      LogGroupName: !Ref DracoLogGroup
      MetricTransformations:
        - MetricValue: "1"
          DefaultValue: 0
          MetricNamespace: "Draco/SnapshotHandler"
          MetricName: "ErrorCount"

  CloudWatchWarnMetric:
    Type: AWS::Logs::MetricFilter
    Properties:
      FilterPattern: "WARN"
      LogGroupName: !Ref DracoLogGroup
      MetricTransformations:
        - MetricValue: "1"
          DefaultValue: 0
          MetricNamespace: "Draco/SnapshotHandler"
          MetricName: "WarnCount"

  Wait4Copy:
    Type: AWS::CloudFormation::Stack
    Properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



