Update your configuration container for APM by adding the following arguments in your docker run
command:
docker run [...] -e DD_APPSEC_ENABLED=true -e DD_APM_TRACING_ENABLED=false [...]
Add the following environment variable values to your container Dockerfile:
ENV DD_APPSEC_ENABLED=true
ENV DD_APM_TRACING_ENABLED=false
Update your configuration yaml file container for APM and add the Application & API Protection env variables:
spec:
template:
spec:
containers:
- name: <CONTAINER_NAME>
image: <CONTAINER_IMAGE>/<TAG>
env:
- name: DD_APPSEC_ENABLED
value: "true"
- name: DD_APM_TRACING_ENABLED
value: "false"
Update your ECS task definition JSON file, by adding these in the environment section:
"environment": [
...,
{
"name": "DD_APPSEC_ENABLED",
"value": "true"
},
{
"name": "DD_APM_TRACING_ENABLED",
"value": "false"
}
]
Initialize Application & API Protection in your code or set environment variables in your service invocation:
DD_APPSEC_ENABLED=true DD_APM_TRACING_ENABLED=false node app.js