From 87419763c9c72089f3ded4716c8039679439317d Mon Sep 17 00:00:00 2001 From: WickramBug Date: Tue, 16 Apr 2024 09:40:23 +0530 Subject: [PATCH] [main] Add abbreviation for Route Table module --- modules/azurerm/Route-Table/route_table.tf | 2 +- modules/azurerm/Route-Table/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/azurerm/Route-Table/route_table.tf b/modules/azurerm/Route-Table/route_table.tf index cdb1a379..ebc4c75a 100644 --- a/modules/azurerm/Route-Table/route_table.tf +++ b/modules/azurerm/Route-Table/route_table.tf @@ -10,7 +10,7 @@ # -------------------------------------------------------------------------------------- resource "azurerm_route_table" "route_table" { - name = join("-", ["route", var.route_table_name]) + name = join("-", [var.route_table_abbreviation, var.route_table_name]) location = var.location resource_group_name = var.resource_group_name tags = var.tags diff --git a/modules/azurerm/Route-Table/variables.tf b/modules/azurerm/Route-Table/variables.tf index 1078a6f0..00211276 100644 --- a/modules/azurerm/Route-Table/variables.tf +++ b/modules/azurerm/Route-Table/variables.tf @@ -48,3 +48,9 @@ variable "next_hop_in_ip_address" { description = "Next hop in IP address" type = string } + +variable "route_table_abbreviation" { + description = "The abbreviation of the resource name." + type = string + default = "route" +}