Skip to content

Commit 0686057

Browse files
authored
chore: Add version tool info to agent [CONTP-776] (#12)
* add version tool info to agent * Update install info
1 parent fde865d commit 0686057

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

modules/ecs_fargate/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Datadog ECS Fargate Terraform
22

3-
Use this Terraform module to install Datadog monitoring for AWS ECS Fargate task.
3+
Use this Terraform module to install Datadog monitoring for AWS ECS Fargate tasks.
44

55
This Terraform module wraps the [aws_ecs_task_definition](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition) resource. It provides the same variable inputs and outputs as the `aws_ecs_task_definition` resource. This module then automatically configures your task definition for Datadog monitoring by:
66

@@ -142,11 +142,9 @@ resource "datadog_ecs_fargate_task" "example" {
142142
volumes = [
143143
{
144144
name = "data-volume"
145-
host_path = "/data"
146145
},
147146
{
148-
name = "data-volume"
149-
host_path = "/data"
147+
name = "config-volume"
150148
}
151149
]
152150

modules/ecs_fargate/datadog.tf

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@
33
# This product includes software developed at Datadog (https://www.datadoghq.com/).
44
# Copyright 2025-present Datadog, Inc.
55

6+
# Version and Install Info
67
locals {
78
# Datadog ECS task tags
9+
version = "0.0.0"
10+
11+
install_info_tool = "terraform"
12+
install_info_tool_version = "terraform-aws-ecs-datadog"
13+
install_info_installer_version = local.version
14+
815
tags = {
9-
dd_ecs_terraform_module = "1.0.0"
16+
dd_ecs_terraform_module = local.version
1017
}
18+
}
19+
20+
locals {
1121

1222
is_linux = var.runtime_platform == null || try(var.runtime_platform.operating_system_family == null, true) || try(var.runtime_platform.operating_system_family == "LINUX", true)
1323
is_fluentbit_supported = var.dd_log_collection.enabled && local.is_linux
@@ -207,7 +217,19 @@ locals {
207217
{
208218
name = "DD_ECS_TASK_COLLECTION_ENABLED"
209219
value = "true"
210-
}
220+
},
221+
{
222+
name = "DD_INSTALL_INFO_TOOL"
223+
value = local.install_info_tool
224+
},
225+
{
226+
name = "DD_INSTALL_INFO_TOOL_VERSION"
227+
value = local.install_info_tool_version
228+
},
229+
{
230+
name = "DD_INSTALL_INFO_INSTALLER_VERSION"
231+
value = local.install_info_installer_version
232+
},
211233
]
212234

213235
dynamic_env = [

0 commit comments

Comments
 (0)