Skip to content

Commit

Permalink
trigger policy recreate to undo possible changes I made manually and …
Browse files Browse the repository at this point in the history
…missed resetting
  • Loading branch information
tmclaugh committed Oct 24, 2024
1 parent e344e53 commit 7e7a9cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
5 changes: 2 additions & 3 deletions stacksets/datadog-shipping/logs-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,14 @@ Resources:
CloudWatchLogsPolicy:
Type: AWS::IAM::Policy
Properties:
PolicyName: !Sub "${AWS::StackName}-datadog-cloudwatch-logs-policy"
PolicyName: datadog-cloudwatch-logs-policy
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- firehose:PutRecord
- firehose:PutRecordBatch
- kinesis:PutRecord
Resource: !GetAtt DatadogDeliveryStream.Arn
- Effect: Allow
Action:
Expand All @@ -95,7 +94,7 @@ Resources:
FirehoseLogsPolicy:
Type: AWS::IAM::Policy
Properties:
PolicyName: !Sub "${AWS::StackName}-datadog-firehose-delivery-policy"
PolicyName: datadog-firehose-delivery-policy
PolicyDocument:
Version: '2012-10-17'
Statement:
Expand Down
19 changes: 18 additions & 1 deletion stacksets/logging/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,21 @@ Resources:
Properties:
PolicyName: Datadog-Logs-Firehose
PolicyDocument: !Sub '{ "RoleArn": "${CloudWatchLogsRole.Arn}", "DestinationArn": "${DestinationArn}", "FilterPattern": ""}'
PolicyType: "SUBSCRIPTION_FILTER_POLICY"
PolicyType: "SUBSCRIPTION_FILTER_POLICY"








aws logs put-account-policy \
--policy-name Datadog-Logs-Firehose \
--policy-type SUBSCRIPTION_FILTER_POLICY \
--policy-document '
{
"RoleArn": "arn:aws:iam::349603509961:role/aws-observability-infra-main-man-CloudWatchLogsRole-aMVAsMuK7nWL",
"DestinationArn": "arn:aws:firehose:us-east-1:156041432316:deliverystream/DATADOG-LOGS",
"FilterPattern": "{$.userIdentity.type = AssumedRole}"
}'

0 comments on commit 7e7a9cb

Please sign in to comment.