This Terraform module deploys a load balancer in Azure.
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"
}
}
We provide 2 ways to build, run, and test module on local dev box:
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
Then simply run it in local shell:
$ bundle install
$ rake build
We provide Dockerfile to build and run module development environment locally:
docker build -t azure-loadbalancer .
$ docker run -it azure-loadbalancer /bin/sh
$ rake build
Originally created by David Tesar