ECS Container Insights Stack
CloudFormation enabling Container Insights on ECS clusters with pre-built CloudWatch dashboards for task CPU, memory, network, and service-level metrics.
ECS Container Insights Stack
CloudFormation stack that enables Container Insights on ECS clusters and deploys pre-built CloudWatch dashboards for task and service-level metrics. Cluster-wide observability in one deploy.
What Is Included
- Container Insights Enablement — CloudFormation custom resource to enable Container Insights on an existing or new ECS cluster
- Task CPU Dashboard — CPU utilization per task definition and service with trend over time
- Task Memory Dashboard — Memory utilization versus reserved memory per task definition
- Network Dashboard — Network bytes in and out per service with per-task breakdown
- Service Metrics Dashboard — Desired, running, and pending task counts per service
How It Works
- Deploy the CloudFormation stack and pass your ECS cluster name as a parameter
- Container Insights is enabled on the cluster automatically via a custom resource
- All four dashboards appear in CloudWatch pre-scoped to your cluster
- Works for both EC2 and Fargate launch types
What You Get
cloudformation.yaml— Container Insights enablement plus all four dashboard definitionsdashboards/— individual JSON files for import into existing CloudFormation stacksREADME.md— deployment steps, required IAM permissions, and Container Insights cost estimate
Requirements
AWS account with ECS, CloudFormation, and CloudWatch access. Container Insights incurs additional CloudWatch charges — see README for per-cluster cost estimates. Compatible with both EC2 and Fargate task types.