Skip to content

Commit

Permalink
Setup account level CW Log filter in datadof account
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Aug 17, 2024
1 parent 6420938 commit b91fcc0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion stacksets/datadog-shipping/logs-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,13 @@ Resources:
CloudWatchLoggingOptions:
Enabled: true
LogGroupName: !Ref DeliveryStreamLogGroup
LogStreamName: !Ref BackupDeliveryLogStream
LogStreamName: !Ref BackupDeliveryLogStream

CloudWatchAccountPolicy:
Type: AWS::Logs::AccountPolicy
Properties:
PolicyName: Datadog-Firehose
PolicyDocument: !Sub '{ "RoleArn":"${CloudWatchLogsRole.Arn}", "DestinationArn":"${DatadogDeliveryStream.Arn}"}'
SelectionCriteria: !Sub 'LogGroupName NOT IN ["${DeliveryStreamLogGroup}", "${BackupDeliveryLogStream}"]'
PolicyType: "SUBSCRIPTION_FILTER_POLICY"
Scope: "ALL"

0 comments on commit b91fcc0

Please sign in to comment.