Skip to content

Commit c1bfc30

Browse files
committed
use opslevel_service_relationship
1 parent 2767fb2 commit c1bfc30

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/hierarchy/system/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ resource "opslevel_system" "this" {
88
owner = local.owner
99
}
1010

11-
# TODO: This would be a really clean way to ensure service.parent is set via this module
12-
#resource "opslevel_service_relationship" "this" {
13-
# for_each = { for service in var.services : service => service }
14-
# system = opslevel_system.this.id
15-
# service = each.value
16-
#}
11+
resource "opslevel_service_relationship" "this" {
12+
for_each = { for service in var.services : service => service }
13+
14+
system = opslevel_system.this.id
15+
service = each.value
16+
}

0 commit comments

Comments
 (0)