Thanks for your interest in Cloud Adoption Framework for Azure landing zones on Terraform. This module is now deprecated and no longer maintained.
As part of Cloud Adoption Framework landing zones for Terraform, we have migrated to a single module model, which you can find here: https://github.com/aztfmod/terraform-azurerm-caf and on the Terraform registry: https://registry.terraform.io/modules/aztfmod/caf/azurerm
In Terraform 0.13 you can now call directly submodules easily with the following syntax:
module "caf_route_tables" {
source = "aztfmod/caf/azurerm//modules/networking/route_tables"
version = "0.4.18"
# insert the 6 required variables here
}
Creates a routing table object and a set of routing table entries.
The route object is not linked to any subnet, you need to attach using azurerm_subnet_route_table_association as per https://www.terraform.io/docs/providers/azurerm/r/subnet_route_table_association.html
Reference the module to a specific version (recommended):
module "route_table" {
source = "aztfmod/caf-route-table/azurerm"
version = "0.x.y"
prefix = local.prefix
tags = local.tags
convention = local.convention
resource_group_name = azurerm_resource_group.rg_test.name
location = local.location
route_table = local.route_table
next_hop_in_dynamic_private_ip = local.next_hop_in_dynamic_private_ip
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
convention | (Required) Naming convention method to use | string |
n/a | yes |
max_length | (Optional) You can speficy a maximum length to the name of the resource | string |
"60" |
no |
next_hop_in_dynamic_private_ip | (Optional) dynamically passing private ip address which is an output of another tf resource or module, e.g. azure firewall | any |
null |
no |
postfix | (Optional) You can use a postfix to the name of the resource | string |
"" |
no |
prefix | (Optional) You can use a prefix to the name of the resource | string |
"" |
no |
route_table | (Required) route table object to be created | any |
n/a | yes |
tags | (Required) map of tags for the deployment | any |
n/a | yes |
(Required) The routing table object describing the route table configuration Mandatory properties are:
- name
- at least one route_entries item as follow:
re1= {
name = "myroute1"
prefix = "255.0.0.0/8"
next_hop_type = "None"
next_hop_in_ip_address = "192.168.10.5" #required if next_hop_type is "VirtualAppliance"
},
Optional fields:
- disable_bgp_route_propagation
(Optional) String in CIDR format of next hop ip address in route. If parameter 'next_hop_in_dynamic_private_ip' is not passed in to the module, then property 'next_hop_in_ip_address' is mandatory for next_hop_type = "VitualAppliance" in tfvars file as defined above. If the parameter 'next_hop_in_dynamic_private_ip' is passed in to the module, it has priority over 'next_hop_in_ip_address' in tfvars file and always overrides it.
Name | Description |
---|---|
id | Returns the ID of the created route table |
name | Returns the name of the created route table |
object | Returns the full object of the created route table |