Skip to content

Commit

Permalink
disable account policy in shipper too
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Oct 23, 2024
1 parent f0ed87f commit 65e5e14
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions stacksets/datadog-shipping/logs-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ Resources:
LogGroupName: !Ref DeliveryStreamLogGroup
LogStreamName: !Ref BackupDeliveryLogStream

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

DatadogLogsDestination:
Type: AWS::Logs::Destination
Expand Down

0 comments on commit 65e5e14

Please sign in to comment.