Module version | Terraform version | AzureRM version |
---|---|---|
>= 2.x.x | >= 1.3.x | >= 2.0.0 |
>= 1.x.x | >= 0.13.x | >= 2.0.0 |
The following parameters are supported:
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | The name of the route table. | string |
n/a | yes |
resource_group_name | The name of the resource group in which to create the route table. | string |
n/a | yes |
location | The location/region where the route table is created. | string |
n/a | yes |
tags | A mapping of tags to assign to the resource. | map(string) |
{} |
no |
disable_bgp_route_propagation | Boolean flag which controls propagation of routes learned by BGP on that route table. | bool |
true |
no |
routes | List of objects that represent the configuration of each route. | list(object({})) |
[] |
no |
The routes
supports the following:
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | The name of the route. | string |
n/a | yes |
address_prefix | The destination CIDR to which the route applies. | string |
n/a | yes |
next_hop_type | The type of Azure hop the packet should be sent to. Possible values are: VirtualNetworkGateway , VnetLocal , Internet and None . |
string |
n/a | yes |
next_hop_in_ip_address | Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance . |
string |
null |
no |
The following outputs are exported:
Name | Description | Sensitive |
---|---|---|
id | The route table configuration ID. | no |
name | The name of the route table. | no |
resource_group_name | The name of the resource group in which to create the route table. | no |
location | The location/region where the route table is created. | no |
tags | The tags assigned to the resource. | no |
routes | Blocks containing configuration of each route. | no |
subnets | List of the ids of the subnets configured to the route table. | no |