Skip to content

Commit

Permalink
Update variables.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
spy86 authored Dec 30, 2024
1 parent e8a72db commit 1b6cc70
Showing 1 changed file with 30 additions and 23 deletions.
53 changes: 30 additions & 23 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,47 +1,54 @@
###########################
# Common vars
###########################
variable "environment" {
description = "Variable that defines the name of the environment."
description = "Specifies the environment where the resources are deployed, such as 'dev', 'staging', or 'prod'. Used as part of the naming convention or key for backend configurations."
type = string
default = "dev"
}

variable "default_tags" {
description = "A mapping of tags to assign to the resource."
description = "A mapping of key-value pairs used to tag the resources. These tags help organize and identify resources within the subscription."
type = map(any)
default = {
"ManagedByTerraform" = "True"
}
}

variable "region" {
description = "Region in which resources are deployed."
description = "The Azure region where the resources are deployed. Use short region codes such as 'weu' (West Europe) for consistent naming conventions."
type = string
default = "weu"
}
############################
#Resource gropus vars
############################

variable "resource_group_location" {
description = "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created."
description = "The Azure region where the resource group is created. Updating this will recreate the resource group and its associated resources."
default = "West Europe"
type = string
}

variable "resource_group_name" {
description = "The name of the resource group in which to create the route table. Changing this forces a new resource to be created."
description = "The name of the resource group where the route table is deployed. Updating this name will trigger the recreation of the resource group."
type = string
}
############################
#Route table variable
############################
variable "route_table_name" {

variable "name" {
description = "The name of the route table. Changing this value will result in a new route table being created."
type = string
description = "The name of the route table. Changing this forces a new resource to be created."
}

variable "route_table" {
description = "A list of route definitions for the route table. Each route object contains the following properties: 'name', 'address_prefix', 'next_hop_type', and optionally 'next_hop_in_ip_address'."
type = list(map(string))
default = []
description = "List of objects representing routes. Each object accepts the arguments documented below."
/*ROUTES = [{ name = "", address_prefix = "", next_hop_type = "", next_hop_in_ip_address = "" }]*/
}
/* Example:
[
{
name = "example-route",
address_prefix = "10.0.0.0/16",
next_hop_type = "VirtualNetworkGateway",
next_hop_in_ip_address = "10.0.0.1"
}
]
*/
}

variable "route_table_disable_bgp_route_propagation" {
description = "A boolean flag to enable or disable the propagation of routes learned via BGP. Set to 'true' to disable propagation; 'false' to allow it."
type = bool
default = true
description = "Boolean flag which controls propagation of routes learned by BGP on that route table. True means disable."
}

0 comments on commit 1b6cc70

Please sign in to comment.