Skip to content

Latest commit

 

History

History
80 lines (64 loc) · 1.76 KB

README.md

File metadata and controls

80 lines (64 loc) · 1.76 KB

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