ECS clusters should use Container Insights
Checks that the ECS cluster's containerInsights setting is enabled or enhanced (Container Insights with enhanced observability). Container Insights collects metrics and logs from the cluster's tasks and services, with diagnostics such as container restart failures.
- service
- ECS
- severity
- Medium
- scope
- evaluated in every region
How to fix it
In the console
ECS → Clusters → the cluster → Update cluster → Monitoring
- Use Container Insights
- On, as Container Insights (enabled) or Container Insights with enhanced observability (enhanced)
With the AWS CLI
aws ecs update-cluster-settings --cluster <cluster-name> --settings name=containerInsights,value=enabled --region <region>With Terraform
resource "aws_ecs_cluster" "this" {
name = "example"
setting {
name = "containerInsights"
value = "enabled"
}
}
See which of your accounts this check is failing on.
Book a live scan