Git Product home page Git Product logo

terraform-azure-rtb's Introduction

Azure Network Route Table

Module Overview

Module creates a route table (RTB) on Azure with provided routes and associates with provided subnets. It includes the following resources:

  • azurerm_route_table
  • azurerm_route
  • azurerm_subnet_route_table_association

Software dependencies

This module has no dependencies on software components.

Command line tools

  • terraform >= 1.2.6

Module dependencies

  • cloud-native-toolkit/terraform-azure-resource-group
  • cloud-native-toolkit/terraform-azure-subnets (optional if associating RTB with one or more subnets)

Example Usage

module "rtb" {
  source = "github.com/cloud-native-toolkit/terraform-azure-rtb"

  name_prefix          = var.name_prefix
  resource_group_name  = module.resource_group.name
  region               = module.resource_group.region
  subnet_ids           = module.ingress_subnet.ids

  routes = [{
    name                    = "test-route"
    address_prefix          = "0.0.0.0/0"
    next_hop_type           = "Internet"
    next_hop_in_ip_address  = ""
  }]
}

Input Variables

This module has the following input variables:

Variable Mandatory / Optional Default Value Description
resource_group_name Mandatory "" The resource group into which to deploy the NSG
region Mandatory "" Region into which to deploy the NSG
name_prefix Optional "" The prefix for the NSG name (module will append "-nsg" to this variable)
name Optional "" The full name for the NSG. One of name or name_prefix must be specified.
subnet_ids Optional [] List of subnet ids in the VNet to which to associate the NSG when created
routes Optional [] List of routes to apply (refer to variables.tf for details)

Output Variables

This module has the following output variables:

Variable Description
id The Azure identification string of the created RTB
name The name of the created RTB

terraform-azure-rtb's People

Contributors

cloudnativetoolkit avatar rich-ehrhardt avatar

Watchers

Noel Colón avatar Sean Sundberg avatar Kyle Bigler avatar David Stacy avatar Matthew Perrins avatar

terraform-azure-rtb's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.