Skip to content

Commit 4673c32

Browse files
authored
Bugfix: ecs private locations for datadog (cloudposse/terraform-aws-components#1007)
1 parent 51af7a4 commit 4673c32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ locals {
66
container.json_map_object
77
],
88
)
9-
datadog_location_config = jsondecode(datadog_synthetics_private_location.private_location.config)
9+
datadog_location_config = try(jsondecode(datadog_synthetics_private_location.private_location[0].config), null)
1010

1111
}
1212

@@ -30,7 +30,7 @@ module "container_definition" {
3030

3131
depends_on = [datadog_synthetics_private_location.private_location]
3232

33-
for_each = var.containers
33+
for_each = { for k, v in var.containers : k => v if local.enabled }
3434

3535
container_name = lookup(each.value, "name")
3636

src/remote-state.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module "ecs_cluster" {
2222
source = "cloudposse/stack-config/yaml//modules/remote-state"
2323
version = "1.5.0"
2424

25-
component = "ecs"
25+
component = "ecs/cluster"
2626

2727
context = module.this.context
2828
}

0 commit comments

Comments
 (0)