-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} |