-
Notifications
You must be signed in to change notification settings - Fork 48
/
ecs-task-definition.json.tpl
55 lines (55 loc) · 1.16 KB
/
ecs-task-definition.json.tpl
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
[
{
"essential": true,
"image": "${app_ecr_url}",
"name": "main",
"command": [
"sh -c \"export INSTANCE_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4); export DD_TRACE_AGENT_URL=http://$INSTANCE_IP:8126; java -javaagent:/app/dd-java-agent.jar -jar /app/spring-boot-application.jar\""
],
"portMappings": [
{
"containerPort": 8000,
"hostPort": 8000,
"protocol": "tcp"
}
],
"environment": [
{
"name": "DD_TRACE_AGENT_PORT",
"value": "8126"
},
{
"name": "DD_APPSEC_ENABLED",
"value": "true"
},
{
"name": "DD_TRACE_SAMPLE_RATE",
"value": "1"
},
{
"name": "DD_PROFILING_ENABLED",
"value": "true"
},
{
"name": "DD_LOGS_INJECTION",
"value": "true"
},
{
"name": "DD_SERVICE",
"value": "domain-tester-service"
},
{
"name": "DD_VERSION",
"value": "1.0"
},
{
"name": "DD_ENV",
"value": "production"
},
{
"name": "DD_CWS_ENABLED",
"value": "true"
}
]
}
]