Configures an ECS task definition with AppMesh proxy configuration for network traffic control.

Terraform Template

resource "aws_ecs_task_definition" "service" {
  container_definitions = file("task-definitions/service.json")
  family = "service"

  proxy_configuration {
    container_name = "applicationContainerName"

    properties = {
      AppPorts = "8080"
      EgressIgnoredIPs = "169.254.170.2,169.254.169.254"
      IgnoredUID = "1337"
      ProxyEgressPort = 15001
      ProxyIngressPort = 15000
    }
    type = "APPMESH"
  }
}