Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
zaro0508 committed Mar 13, 2024
1 parent dab3353 commit e11ba31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Parameters:
MonitoringAccountId:
Description: Allows one or more monitoring accounts to view your data. Enter AWS account ids, 12 numeric digits in comma-separated list
Type: String
SinkIdentifier:
Description: ID of the attachment point in the cloudwatch monitoring account.
Type: String

Resources:
Link:
Expand All @@ -19,4 +22,4 @@ Resources:
- "AWS::Logs::LogGroup"
- "AWS::XRay::Trace"
- "AWS::ApplicationInsights::Application"
SinkIdentifier: !Sub "arn:aws:oam:us-east-1:${MonitoringAccountId}:sink/6046cc13-135d-4e41-ae56-63327a7a7b8c"
SinkIdentifier: !Sub "arn:aws:oam:us-east-1:${MonitoringAccountId}:sink/${SinkIdentifier}"
5 changes: 4 additions & 1 deletion org-formation/740-cloudwatch-dashboard/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ LinkManagementAccount:
ExcludeAccount: !Ref MonitorCentralAccount
Parameters:
MonitoringAccountId: !Ref MonitorCentralAccount
SinkIdentifier: "6046cc13-135d-4e41-ae56-63327a7a7b8c"

# Allow member accounts to share cloudwatch data with MonitorCentral
CrossAccountSharingRole:
Expand All @@ -36,6 +37,8 @@ CrossAccountSharingRole:
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
Account: '*'
ExcludeAccount: !Ref MonitorCentralAccount
ExcludeAccount:
- !Ref MonitorCentralAccount
- !Ref TransitAccount
Parameters:
MonitoringAccountIds: !Ref MonitorCentralAccount

0 comments on commit e11ba31

Please sign in to comment.