ECS Container Insights is disabled Affecting ECS service in AWS


0.0
high
    Severity Framework Snyk CCSS
    Rule category Monitoring / Best Practices

Is your enviroment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
    Frameworks
  • Snyk ID SNYK-CC-00281
  • credit Snyk Research Team

Description

ECS Container Insights will not be enabled on the cluster and performance log events will not be collected and displayed in CloudWatch.

How to fix?

Set setting.name attribute to containerInsights, and setting.value to enabled.

Example Configuration

resource "aws_ecs_cluster" "allowed" {
  name = "test"
  setting {
    name  = "containerInsights"
    value = "enabled"
  }
}