Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
ecs_cluster_container_insights_enabledProvider: AWS
Service:
ecsSeverity: MEDIUM
Categories:
loggingResource type:
AwsEcsClusterWhat this check verifies
ECS clusters have CloudWatch Container Insights configured via thecontainerInsights setting, accepting enabled or enhanced values to emit cluster, service, task, and container telemetry.
Risk
Without Container Insights, ECS operations lack telemetry to spot failures and anomalies. Missed CPU/memory/network spikes and restart loops degrade availability and delay response. Absent baselines impede detecting abuse (e.g., cryptomining or data egress bursts), risking confidentiality and unexpected costs.Recommendation
Enable Container Insights on all clusters-preferenhanced for deeper visibility. Apply at account level for new clusters and enforce via automation.
Use least privilege for access to metrics/logs, encrypt logs, and set alarms on critical metrics. Correlate with app logs and tracing for defense in depth and faster incident detection.
Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
References
- https://docs.aws.amazon.com/securityhub/latest/userguide/ecs-controls.html#ecs-12
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html
- https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-ECS.html
- https://docs.aws.amazon.com/config/latest/developerguide/ecs-container-insights-enabled.html
- https://aws.amazon.com/blogs/aws/container-insights-with-enhanced-observability-now-available-in-amazon-ecs/
- https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-ECS-cluster.html
- https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights.html
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = ecs_cluster_container_insights_enabled. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks