File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ locals {
4040 logDriver = " awsfirelens"
4141 options = var.datadog_agent_sidecar_enabled ? {
4242 Name = " datadog" ,
43- apikey = one ( module. datadog_configuration [ * ] . datadog_app_key ) ,
44- Host = format (" http-intake.logs.%s" , one ( module. datadog_configuration [ * ] . datadog_site ) )
43+ apikey = module.datadog_configuration.datadog_api_key ,
44+ Host = format (" http-intake.logs.%s" , module. datadog_configuration . datadog_site )
4545 dd_service = module.this.name,
4646 dd_tags = local.all_dd_tags,
4747 dd_source = " ecs" ,
@@ -87,8 +87,8 @@ module "datadog_container_definition" {
8787 essential = true
8888 map_environment = {
8989 " ECS_FARGATE" = var.task.launch_type == " FARGATE" ? true : false
90- " DD_API_KEY" = one ( module. datadog_configuration [ * ] . datadog_api_key )
91- " DD_SITE" = one ( module. datadog_configuration [ * ] . datadog_site )
90+ " DD_API_KEY" = module.datadog_configuration.datadog_api_key
91+ " DD_SITE" = module.datadog_configuration.datadog_site
9292 " DD_ENV" = module.this.stage
9393 " DD_LOGS_ENABLED" = true
9494 " DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL" = true
Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ data "jq_query" "service_domain_query" {
141141}
142142
143143module "datadog_configuration" {
144- count = var. datadog_agent_sidecar_enabled ? 1 : 0
145144 source = " ../datadog-configuration/modules/datadog_keys"
146145 enabled = true
147146 context = module. this . context
You can’t perform that action at this time.
0 commit comments