{ "family": "ecs-cwagent-daemon-service", "taskRoleArn": "{{task-role-arn}}", "executionRoleArn": "{{execution-role-arn}}", "networkMode": "bridge", "containerDefinitions": [ { "name": "cloudwatch-agent", "image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300042.1b746", "mountPoints": [ { "readOnly": true, "containerPath": "/rootfs/proc", "sourceVolume": "proc" }, { "readOnly": true, "containerPath": "/rootfs/dev", "sourceVolume": "dev" }, { "readOnly": true, "containerPath": "/sys/fs/cgroup", "sourceVolume": "al2_cgroup" }, { "readOnly": true, "containerPath": "/cgroup", "sourceVolume": "al1_cgroup" }, { "readOnly": true, "containerPath": "/rootfs/sys/fs/cgroup", "sourceVolume": "al2_cgroup" }, { "readOnly": true, "containerPath": "/rootfs/cgroup", "sourceVolume": "al1_cgroup" } ], "environment": [ { "name": "USE_DEFAULT_CONFIG", "value": "True" } ], "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-create-group": "True", "awslogs-group": "/ecs/ecs-cwagent-daemon-service", "awslogs-region": "{{awslogs-region}}", "awslogs-stream-prefix": "ecs" } } } ], "requiresCompatibilities": [ "EC2" ], "volumes": [ { "name": "proc", "host": { "sourcePath": "/proc" } }, { "name": "dev", "host": { "sourcePath": "/dev" } }, { "name": "al1_cgroup", "host": { "sourcePath": "/cgroup" } }, { "name": "al2_cgroup", "host": { "sourcePath": "/sys/fs/cgroup" } } ], "cpu": "128", "memory": "64" }