Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 673 Bytes

container_insights.md

File metadata and controls

28 lines (20 loc) · 673 Bytes

Cluster does not have container insights enabled

In the code example cluster does not have container insights enabled

 resource "aws_ecs_cluster" "insecure_example" {
    name = "services-cluster"
 }

Why it's vulnerable?

Cloudwatch Container Insights provide more metrics and logs for container based applications and micro services. Not all metrics and logs may be gathered for containers when Container Insights isn't enabled.

How to fix?

Enable Container Insights

 resource "aws_ecs_cluster" "secure_example" {
    name = "services-cluster"

    setting {
      name  = "containerInsights"
      value = "enabled"
    }
 }