terraform-modules
terraform-modules copied to clipboard
governance module error when getting created fram scratch
When trying to create governance module from 0 with
- governance_global
- governance_regional
- xkf_governance_global
defined from the get go I encounter the following issue. To workaround this I use a depends_on right now. The question is if it woulden't be better to just use an output of group names instead.
module.governance_regional.data.azurerm_subscription.current: Read complete after 0s [id=/subscriptions/00000-00000-00000-0000]
╷
│ Error: No group found matching specified filter (displayName eq 'az-rg-lz-xks-e2e-lab-owner')
│
│ with module.xkf_governance_global.data.azuread_group.resource_group_owner["lab"],
│ on .terraform/modules/xkf_governance_global/modules/azure/xkf-governance-global/delegate-xks-rg.tf line 8, in data "azuread_group" "resource_group_owner":
│ 8: display_name = "${var.azure_ad_group_prefix}${var.group_name_separator}rg${var.group_name_separator}${var.subscription_name}${var.group_name_separator}${var.environment}${var.group_name_separator}${each.key}${var.group_name_separator}owner"
│
╵
╷
│ Error: No group found matching specified filter (displayName eq 'az-rg-lz-xks-e2e-lab-contributor')
│
│ with module.xkf_governance_global.data.azuread_group.resource_group_contributor["lab"],
│ on .terraform/modules/xkf_governance_global/modules/azure/xkf-governance-global/delegate-xks-rg.tf line 18, in data "azuread_group" "resource_group_contributor":
│ 18: display_name = "${var.azure_ad_group_prefix}${var.group_name_separator}rg${var.group_name_separator}${var.subscription_name}${var.group_name_separator}${var.environment}${var.group_name_separator}${each.key}${var.group_name_separator}contributor"
│
╵
╷
│ Error: No group found matching specified filter (displayName eq 'az-rg-lz-xks-e2e-lab-reader')
│
│ with module.xkf_governance_global.data.azuread_group.resource_group_reader["lab"],
│ on .terraform/modules/xkf_governance_global/modules/azure/xkf-governance-global/delegate-xks-rg.tf line 28, in data "azuread_group" "resource_group_reader":
│ 28: display_name = "${var.azure_ad_group_prefix}${var.group_name_separator}rg${var.group_name_separator}${var.subscription_name}${var.group_name_separator}${var.environment}${var.group_name_separator}${each.key}${var.group_name_separator}reader"
│