ECS Task Definition (examples)
Service Maps is an Enterprise-only feature
Example Task Definition
{
"containerDefinitions": [
{
"name": "dd-bridge",
"image": "codeseeio/dd-bridge",
"cpu": 50,
"memory": 128,
"portMappings": [
{
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp"
}
],
"essential": true,
"environment": [
{
"name": "CODESEE_BRIDGE_FORWARD_HOST",
"value": "https://in-datadog.codesee.io"
}
],
"mountPoints": [],
"volumesFrom": [],
"secrets": [
{
"name": "CODESEE_BRIDGE_TOKEN",
"valueFrom": "<Your Ingestion Token from CodeSee>"
}
]
}
],
"family": "<Family Name>",
"revision": 5,
"volumes": [],
"status": "ACTIVE",
"placementConstraints": [],
"compatibilities": [
"EXTERNAL",
"EC2"
]
}
Example Terraform ECS Task Definition
resource "aws_ecs_task_definition" "dd_bridge" {
family = "dd-bridge"
container_definitions = jsonencode([
{
name = "dd-bridge"
image = "codeseeio/dd-bridge"
cpu = 50
memory = 128
essential = true
task_role_arn = aws_iam_role.dd_bridge_role.arn
portMappings = [
{
hostPort = 8080,
protocol = "tcp",
containerPort = 8080
}
]
environment = [
{
name = "CODESEE_BRIDGE_FORWARD_HOST",
value = "https://in-datadog.codesee.io"
}
]
secrets = [
{
name = "CODESEE_BRIDGE_TOKEN",
valueFrom = "<CodeSee Ingestion Token>"
},
]
}
])
}
Updated 7 months ago