diff --git a/modules/terraform-aci-contract/main.tf b/modules/terraform-aci-contract/main.tf index 1d37af0d..329bddec 100644 --- a/modules/terraform-aci-contract/main.tf +++ b/modules/terraform-aci-contract/main.tf @@ -93,7 +93,7 @@ resource "aci_rest_managed" "vzRsSubjGraphAtt" { resource "aci_rest_managed" "vzInTerm" { for_each = { for subj in var.subjects : subj.name => subj if length(subj.filters) == 0 } - dn = "${aci_rest_managed.vzBrCP.dn}/subj-${each.value.name}/intmnl" + dn = "${aci_rest_managed.vzSubj[each.key].dn}/intmnl" class_name = "vzInTerm" content = { prio = each.value.consumer_to_provider_qos_class @@ -103,7 +103,7 @@ resource "aci_rest_managed" "vzInTerm" { resource "aci_rest_managed" "vzOutTerm" { for_each = { for subj in var.subjects : subj.name => subj if length(subj.filters) == 0 } - dn = "${aci_rest_managed.vzBrCP.dn}/subj-${each.value.name}/outtmnl" + dn = "${aci_rest_managed.vzSubj[each.key].dn}/outtmnl" class_name = "vzOutTerm" content = { prio = each.value.provider_to_consumer_qos_class