Skip to content

Commit 6f9714c

Browse files
chore: add log environment safety checks
1 parent 11c4aba commit 6f9714c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/ecs_fargate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This example showcases a simple ECS Fargate Task Definition with out of the box
99
* Set the `dd_api_key` to the Datadog API Key (required)
1010
* Set the `dd_service` to the name of the service you want to use to filter for the resource in Datadog
1111
* Set the `dd_site` to the [Datadog destination site](https://docs.datadoghq.com/getting_started/site/) for your metrics, traces, and logs
12-
* (Optional) Set `task_family_name` to the name of the task family (default: "datadog-terraform-app")
12+
* (Optional) Set `task_family_name` to the name of the task family (default: "dummy-terraform-app")
1313
* Run the following commands:
1414

1515
```bash

modules/ecs_fargate/datadog.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,11 @@ locals {
338338
)
339339
]
340340

341+
dd_log_environment = var.dd_log_collection.fluentbit_config.environment != null ? var.dd_log_collection.fluentbit_config.environment : []
342+
341343
dd_log_agent_env = concat(
342344
local.ust_env_vars,
343-
var.dd_log_collection.fluentbit_config.environment
345+
local.dd_log_environment
344346
)
345347

346348
# Datadog log router container definition

0 commit comments

Comments
 (0)