Skip to content

Commit

Permalink
avoid deploying CloudWatchAccountPolicy ro new Datadog account
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Oct 23, 2024
1 parent 5aacd39 commit f828669
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stacksets/logging/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Parameters:
Type: String

Conditions:
IsLoggingAccount: !Equals [ !Ref AWS::AccountId, !Select [ 4, !Split [ ":", !Ref DestinationArn ] ] ]
#IsLoggingAccount: !Equals [ !Ref AWS::AccountId, !Select [ 4, !Split [ ":", !Ref DestinationArn ] ] ]
IsLoggingAccount: !Equals [ !Ref AWS::AccountId, "156041432316" ]
IsNotLoggingAccount: !Not [ Condition: IsLoggingAccount ]

Resources:
Expand Down

0 comments on commit f828669

Please sign in to comment.