Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

governance module error when getting created fram scratch #819

Open
NissesSenap opened this issue Sep 29, 2022 · 0 comments
Open

governance module error when getting created fram scratch #819

NissesSenap opened this issue Sep 29, 2022 · 0 comments

Comments

@NissesSenap
Copy link
Contributor

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"
│ 
@NissesSenap NissesSenap changed the title governance module when getting created from 0 governance module error when getting created fram scratch Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant