-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoreno_tf_ecs_ecs_task_dd-agent.tf
56 lines (56 loc) · 1.07 KB
/
oreno_tf_ecs_ecs_task_dd-agent.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Define task
#
resource "aws_ecs_task_definition" "datadog_agent" {
family = "datadog_agent"
volume {
name = "docker"
host_path = "/var/run/docker.sock"
}
volume {
name = "mounts"
host_path = "/proc/mounts"
}
volume {
name = "cgroup"
host_path = "/cgroup/"
}
container_definitions = <<EOF
[
{
"environment": [
{
"name": "API_KEY",
"value": "${var.datadog_api_key}"
}
],
"mountPoints": [
{
"sourceVolume": "docker",
"containerPath": "/var/run/docker.sock",
"readOnly": false
},
{
"sourceVolume": "mounts",
"containerPath": "/host/proc/mounts",
"readOnly": true
},
{
"sourceVolume": "cgroup",
"containerPath": "/host/sys/fs/cgroup",
"readOnly": true
}
],
"name": "dd-agent",
"image": "datadog/docker-dd-agent",
"cpu": 0,
"memory": 256,
"portMappings": [
],
"command": [
],
"essential": true
}
]
EOF
}