Skip to content

WodansSon/terraform-azurerm-loadbalancer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-azurerm-loadbalancer

Build Status

Create a basic load balancer in Azure

This Terraform module deploys a load balancer in Azure.

Usage

module "mylb" {
  source   = "Azure/loadbalancer/azurerm"
  location = "North Central US"
  "remote_port" {
    ssh = ["Tcp", "22"]
  }
  "lb_port" {
    http = ["80", "Tcp", "80"]
    https = ["443", "Tcp", "443"]
  }
  "tags" {
    cost-center = "12345"
    source     = "terraform"
  }
}

Test

Configurations

We provide 2 ways to build, run, and test module on local dev box:

Native(Mac/Linux)

Prerequisites

Environment setup

We provide simple script to quickly set up module development environment:

$ curl -sSL https://raw.githubusercontent.com/Azure/terramodtest/master/tool/env_setup.sh | sudo bash

Run test

Then simply run it in local shell:

$ bundle install
$ rake build

Docker

We provide Dockerfile to build and run module development environment locally:

Prerequisites

Build the image

docker build -t azure-loadbalancer .

Run test

$ docker run -it azure-loadbalancer /bin/sh
$ rake build

Authors

Originally created by David Tesar

License

MIT

About

Terraform Azure RM Module for Load Balancer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 88.5%
  • Ruby 11.5%