forked from Azure/terraform-azurerm-loadbalancer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
77 lines (62 loc) · 2.3 KB
/
variables.tf
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
variable "location" {
description = "(Required) The location/region where the core network will be created. The full list of Azure regions can be found at https://azure.microsoft.com/regions"
}
variable "resource_group_name" {
description = "(Required) The name of the resource group where the load balancer resources will be placed."
default = "azure_lb-rg"
}
variable "prefix" {
description = "(Required) Default prefix to use with your resource names."
default = "azure_lb"
}
variable "number_of_endpoints" {
description = "Number of inbound remote access rules to create which are load balanced on the vnet"
default = 2
}
variable "remote_port" {
description = "Protocols to be used for remote vm access. [protocol, backend_port]. Frontend port will be automatically generated starting at 50000 and in the output."
default = {}
}
variable "lb_port" {
description = "Protocols to be used for lb health probes and rules. [frontend_port, protocol, backend_port]"
default = {}
}
variable "lb_probe_unhealthy_threshold" {
description = "Number of times the load balancer health probe has an unsuccessful attempt before considering the endpoint unhealthy."
default = 2
}
variable "lb_probe_interval" {
description = "Interval in seconds the load balancer health probe rule does a check"
default = 5
}
variable "frontend_name" {
description = "(Required) Specifies the name of the frontend ip configuration."
default = "myPublicIP"
}
variable "public_ip_address_allocation" {
description = "(Required) Defines how an IP address is assigned. Options are Static or Dynamic."
default = "static"
}
variable "tags" {
type = "map"
default = {
source = "terraform"
}
}
variable "type" {
type = "string"
description = "(Optional) Defined if the loadbalancer is private or public"
default = "public"
}
variable "frontend_subnet_id" {
description = "(Optional) Frontend subnet id to use when in private mode"
default = ""
}
variable "frontend_private_ip_address" {
description = "(Optional) Private ip address to assign to frontend. Use it with type = private"
default = ""
}
variable "frontend_private_ip_address_allocation" {
description = "(Optional) Frontend ip allocation type (Static or Dynamic)"
default = "Dynamic"
}