From 26ae5002a15266fe6ce674d9471658b1a03cdb15 Mon Sep 17 00:00:00 2001 From: Rupal Sharma Date: Thu, 1 Feb 2024 17:49:00 +0530 Subject: [PATCH 1/4] feat: Added support for custom tags --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/main.tf b/main.tf index dd28f67..e67017d 100644 --- a/main.tf +++ b/main.tf @@ -11,6 +11,7 @@ module "labels" { business_unit = var.business_unit label_order = var.label_order repository = var.repository + extra_tags = var.extra_tags } ##----------------------------------------------------------------------------- diff --git a/variables.tf b/variables.tf index fbd79ef..3c1a114 100644 --- a/variables.tf +++ b/variables.tf @@ -94,3 +94,9 @@ variable "notes" { default = "This Resource Group is locked by terrafrom" description = "Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created." } +variable "extra_tags" { +type = map(string) +default = null +description = "Variable to pass extra tags." +} + From 84dc9574350e8c3722fcd7ee5c4bd6f2fab7221b Mon Sep 17 00:00:00 2001 From: Rupal Sharma Date: Fri, 2 Feb 2024 16:11:40 +0530 Subject: [PATCH 2/4] feat: Added support for custom tags --- main.tf | 2 +- variables.tf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index e67017d..481ba02 100644 --- a/main.tf +++ b/main.tf @@ -11,7 +11,7 @@ module "labels" { business_unit = var.business_unit label_order = var.label_order repository = var.repository - extra_tags = var.extra_tags + extra_tags = var.extra_tags } ##----------------------------------------------------------------------------- diff --git a/variables.tf b/variables.tf index 3c1a114..b66c9f3 100644 --- a/variables.tf +++ b/variables.tf @@ -95,8 +95,8 @@ variable "notes" { description = "Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created." } variable "extra_tags" { -type = map(string) -default = null -description = "Variable to pass extra tags." + type = map(string) + default = null + description = "Variable to pass extra tags." } From e4b580d9f56b428e27e8259bb22357d5c73447bc Mon Sep 17 00:00:00 2001 From: Rupal Sharma Date: Mon, 5 Feb 2024 15:13:03 +0530 Subject: [PATCH 3/4] feat: Added support for custom tags --- variables.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/variables.tf b/variables.tf index b66c9f3..57b8809 100644 --- a/variables.tf +++ b/variables.tf @@ -42,6 +42,12 @@ variable "managedby" { description = "ManagedBy, eg 'CloudDrove'." } +variable "extra_tags" { + type = map(string) + default = null + description = "Variable to pass extra tags." +} + variable "enabled" { type = bool default = true @@ -94,9 +100,3 @@ variable "notes" { default = "This Resource Group is locked by terrafrom" description = "Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created." } -variable "extra_tags" { - type = map(string) - default = null - description = "Variable to pass extra tags." -} - From f91ff367c849dae215899133586ceec002ea1f8d Mon Sep 17 00:00:00 2001 From: Rupal Sharma Date: Wed, 14 Feb 2024 16:23:38 +0530 Subject: [PATCH 4/4] fix:change in count condition --- outputs.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/outputs.tf b/outputs.tf index c153e58..4106571 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,15 +1,15 @@ output "resource_group_id" { - value = azurerm_resource_group.default[0].id + value = azurerm_resource_group.default[*].id description = "The ID of the Resource Group." } output "resource_group_name" { - value = azurerm_resource_group.default[0].name + value = azurerm_resource_group.default[*].name description = "The Name which should be used for this Resource Group. Changing this forces a new Resource Group to be created." } output "resource_group_location" { - value = azurerm_resource_group.default[0].location + value = azurerm_resource_group.default[*].location description = "The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created." }