AWSTemplateFormatVersion: '2010-09-09' Parameters: PrimaryRegionALBFullName: Type: String MythicalEcsCluster: Type: String CoreServiceName: Type: String LikeServiceName: Type: String DDBTable: Type: String DashboardName: Type: String Resources: MultiRegionWorkShopDashboard: Type: AWS::CloudWatch::Dashboard Properties: DashboardName: !Ref DashboardName DashboardBody: !Sub - | { "widgets": [ { "type": "metric", "x": 0, "y": 1, "width": 9, "height": 6, "properties": { "metrics": [ [ "AWS/ApplicationELB", "RequestCount", "LoadBalancer", "${PrimaryRegionALBFullName}", { "label": "${CurrentRegion} ALB" } ] ], "view": "timeSeries", "stacked": true, "region": "${CurrentRegion}", "stat": "Sum", "period": 60, "title": "ALB Requests Per Minute" } }, { "type": "metric", "x": 9, "y": 1, "width": 12, "height": 3, "properties": { "metrics": [ [ "AWS/ECS", "CPUUtilization", "ServiceName", "${CoreServiceName}", "ClusterName", "${MythicalEcsCluster}" ], [ ".", "MemoryUtilization", ".", ".", ".", "." ] ], "view": "singleValue", "region": "${CurrentRegion}", "title": "${CurrentRegion} Core Service Metrics", "stat": "Average", "period": 60 } }, { "type": "metric", "x": 0, "y": 7, "width": 9, "height": 6, "properties": { "metrics": [ [ "AWS/ApplicationELB", "HTTPCode_Target_4XX_Count", "LoadBalancer", "${PrimaryRegionALBFullName}", { "label": "${CurrentRegion} ALB 4XX" } ], [ ".", "HTTPCode_Target_5XX_Count", ".", ".", { "label": "${CurrentRegion} ALB 5XX" } ], [ ".", "HTTPCode_Target_2XX_Count", ".", ".", { "label": "${CurrentRegion} ALB 2XX" } ] ], "view": "timeSeries", "stacked": true, "title": "ALB HTTP Responses", "region": "${CurrentRegion}", "stat": "Sum", "period": 60 } }, { "type": "text", "x": 3, "y": 0, "width": 12, "height": 1, "properties": { "markdown": "\n# Multi-Region BCDR Workshop\n" } }, { "type": "metric", "x": 9, "y": 4, "width": 12, "height": 3, "properties": { "metrics": [ [ "AWS/ECS", "CPUUtilization", "ServiceName", "${LikeServiceName}", "ClusterName", "${MythicalEcsCluster}" ], [ ".", "MemoryUtilization", ".", ".", ".", "." ] ], "view": "singleValue", "region": "${CurrentRegion}", "title": "${CurrentRegion} Like Service Metrics", "stat": "Average", "period": 60 } }, { "type": "metric", "x": 9, "y": 7, "width": 9, "height": 6, "properties": { "metrics": [ [ "AWS/DynamoDB", "ConsumedReadCapacityUnits", "TableName", "${DDBTable}" ], [ ".", "ConsumedWriteCapacityUnits", ".", "." ] ], "view": "timeSeries", "stacked": true, "region": "${CurrentRegion}", "stat": "Sum", "period": 60, "title": "DynamoDB Read/Write" } } ] } - PrimaryRegionALBFullName: !Ref PrimaryRegionALBFullName MythicalEcsCluster: !Ref MythicalEcsCluster CoreServiceName: !Ref CoreServiceName LikeServiceName: !Ref LikeServiceName DDBTable: !Ref DDBTable CurrentRegion: !Ref AWS::Region