Skip to content

walmartdigital/terraform-azure-routetables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure Route Table Module

This module create all required resources for deploy a Route Table and the associated routes on Azure.

Usage

module "az_rt" {
  source = "git::https://github.com/walmartdigital/k8s-rt-module.git?ref=0.1.0"

  resource_group         = "my-resource-group"
  vnet_name              = "my-vnet"
  subnet_name            = "my-subnet"
  route_table_name       = "my-route-table"
  route_names            = ["route1", "route2", "route3"]
  route_prefixes         = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
  route_nexthop_types    = ["VirtualAppliance", "VirtualAppliance", "VirtualAppliance"]
  next_hop_in_ip_address = ["10.20.0.1", "10.20.0.2", "10.20.0.3"]
}

Arguments

  • resource_group: A string representing the resource group where all resources will be provisioned, this resource group needs to be previously created (required).
  • vnet_name: A string used as Virtual Network name, to be associated with the route table (required).
  • subnet_name: A string used as Subnet name, to be associated with the route table (required).
  • route_table_name: A string used as the name of the RouteTable being created (required).
  • disable_bgp_route_propagation: Boolean flag which controls propagation of routes learned by BGP on that route table. True means disable and that's the default.
  • route_names: A list of public subnets inside the vNet.
  • route_prefixes: The list of address prefixes to use for each route.
  • route_nexthop_types: A list types of Azure hop the packet should be sent to for each corresponding route. Valid values are VirtualNetworkGateway, VnetLocal, Internet, VirtualAppliance, None.
  • next_hop_in_ip_address: A list of the IP addresses packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

Outputs

  • routetable_id: The ID of the route table created.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages