ECS에서 Workload Protection 설정하기
다음 지침을 따라 Workload Protection을 활성화하세요.
Fargate 컴퓨팅 옵션으로 구성된 ECS에 Workload Protection을 배포하려면
Fargate 배포 페이지를 참조하세요.
Collecting events using Workload Protection will affect your billing. For more information, see
Datadog Pricing.
전제 조건
- Datadog Agent 버전
7.46 이상. - 이 페이지는 ECS용 Amazon EC2 컴퓨팅 옵션을 다룹니다.
설치
datadog-agent 컨테이너 정의에 다음의 환경 변수를 추가하세요.
{
"containerDefinitions": [
{
"name": "datadog-agent",
...
"mountPoints": [
{
"sourceVolume": "docker_sock",
"containerPath": "/var/run/docker.sock",
"readOnly": true
},
{
"sourceVolume": "proc",
"containerPath": "/host/proc/",
"readOnly": true
},
{
"sourceVolume": "cgroup",
"containerPath": "/host/sys/fs/cgroup",
"readOnly": true
},
{
"sourceVolume": "passwd",
"containerPath": "/etc/passwd",
"readOnly": true
},
{
"sourceVolume": "os_release",
"containerPath": "/host/etc/os-release",
"readOnly": true
},
{
"sourceVolume": "kernel_debug",
"containerPath": "/sys/kernel/debug"
},
{
"sourceVolume": "root",
"containerPath": "/host/root",
"readOnly": true
}
],
...
"environment": [
...
{
"name": "DD_COMPLIANCE_CONFIG_ENABLED",
"value": "true"
},
{
"name": "DD_COMPLIANCE_CONFIG_HOST_BENCHMARKS_ENABLED",
"value": "true"
},
{
"name": "DD_RUNTIME_SECURITY_CONFIG_ENABLED",
"value": "true"
},
{
"name": "DD_SYSTEM_PROBE_ENABLED",
"value": "true"
},
{
"name": "DD_RUNTIME_SECURITY_CONFIG_REMOTE_CONFIGURATION_ENABLED",
"value": "true"
},
{
"name": "DD_SBOM_ENABLED",
"value": "true"
},
{
"name": "DD_SBOM_CONTAINER_IMAGE_ENABLED",
"value": "true"
},
{
"name": "DD_CONTAINER_IMAGE_ENABLED",
"value": "true"
},
{
"name": "DD_SBOM_HOST_ENABLED",
"value": "true"
}
]
}
],
...
"volumes": [
{
"name": "docker_sock",
"host": {
"sourcePath": "/var/run/docker.sock"
}
},
{
"name": "proc",
"host": {
"sourcePath": "/proc/"
}
},
{
"name": "cgroup",
"host": {
"sourcePath": "/sys/fs/cgroup/"
}
},
{
"name": "passwd",
"host": {
"sourcePath": "/etc/passwd"
}
},
{
"name": "os_release",
"host": {
"sourcePath": "/etc/os-release"
}
},
{
"name": "kernel_debug",
"host": {
"sourcePath": "/sys/kernel/debug"
}
},
{
"name": "root",
"host": {
"sourcePath": "/"
}
}
],
"linuxParameters": {
"capabilities": {
"add": [
"SYS_ADMIN",
"SYS_RESOURCE",
"SYS_PTRACE",
"NET_ADMIN",
"NET_BROADCAST",
"NET_RAW",
"IPC_LOCK",
"CHOWN"
]
}
},
"requiresCompatibilities": [
"EC2"
]
}
Agent가 컨테이너 이미지에서 SBOM을 추출하지 못하면 다음을 통해 컨테이너 정의에서 Agent 메모리를 늘립니다.
{
"containerDefinitions": [
{
"name": "datadog-agent",
"memory": 256,
...
}
]
...
}