From 5e6293ce11b63da6cbc6800e9fc384398e703f73 Mon Sep 17 00:00:00 2001 From: Stu Mace Date: Sun, 19 Jan 2025 18:35:59 +0000 Subject: [PATCH] fix: allow for resources to be made in a common resource group (#371) * feat: add resource group dependency * chore: docs linting issue --------- Co-authored-by: Matt White <16320656+matt-FFFFFF@users.noreply.github.com> --- main.usermanagedidentity.tf | 4 ++++ main.virtualnetwork.tf | 1 + 2 files changed, 5 insertions(+) diff --git a/main.usermanagedidentity.tf b/main.usermanagedidentity.tf index 5a02a4bf..c965fcdd 100644 --- a/main.usermanagedidentity.tf +++ b/main.usermanagedidentity.tf @@ -16,4 +16,8 @@ module "usermanagedidentity" { federated_credentials_advanced = var.umi_federated_credentials_advanced federated_credentials_github = var.umi_federated_credentials_github federated_credentials_terraform_cloud = var.umi_federated_credentials_terraform_cloud + + depends_on = [ + module.resourcegroup + ] } diff --git a/main.virtualnetwork.tf b/main.virtualnetwork.tf index db53fb69..c7e60564 100644 --- a/main.virtualnetwork.tf +++ b/main.virtualnetwork.tf @@ -9,5 +9,6 @@ module "virtualnetwork" { depends_on = [ module.resourcegroup_networkwatcherrg, + module.resourcegroup ] }