File: main.tf

package info (click to toggle)
golang-github-hashicorp-go-discover 0.0%2Bgit20190905.34a6505-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 476 kB
  • sloc: makefile: 9
file content (25 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
variable "prefix" {
  default = "go-discover-azure-vmss"
}

resource "azurerm_resource_group" "test" {
  name     = "${var.prefix}-dev"
  location = "West Europe"
}

module "network" {
  source         = "./modules/network"
  name           = "${var.prefix}-internalnw"
  resource_group = "${azurerm_resource_group.test.name}"
  location       = "${azurerm_resource_group.test.location}"
  address_space  = "10.0.0.0/16"
  subnet_cidr    = "10.0.1.0/24"
}

module "vmss" {
  source         = "./modules/vmss"
  name           = "${var.prefix}-01"
  resource_group = "${azurerm_resource_group.test.name}"
  location       = "${azurerm_resource_group.test.location}"
  subnet_id      = "${module.network.subnet_id}"
}