forked from Azure/terraform-azurerm-loadbalancer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
102 lines (85 loc) · 2.91 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
variable "location" {
description = "(Optional) 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"
type = string
default = ""
}
variable "resource_group_name" {
description = "(Required) The name of the resource group where the load balancer resources will be imported."
type = string
}
variable "prefix" {
description = "(Required) Default prefix to use with your resource names."
type = string
default = "azure_lb"
}
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."
type = map(any)
default = {}
}
variable "lb_port" {
description = "Protocols to be used for lb rules. Format as [frontend_port, protocol, backend_port]"
type = map(any)
default = {}
}
variable "lb_probe_unhealthy_threshold" {
description = "Number of times the load balancer health probe has an unsuccessful attempt before considering the endpoint unhealthy."
type = number
default = 2
}
variable "lb_probe_interval" {
description = "Interval in seconds the load balancer health probe rule does a check"
type = number
default = 5
}
variable "frontend_name" {
description = "(Required) Specifies the name of the frontend ip configuration."
type = string
default = "myPublicIP"
}
variable "allocation_method" {
description = "(Required) Defines how an IP address is assigned. Options are Static or Dynamic."
type = string
default = "Static"
}
variable "tags" {
type = map(string)
default = {
source = "terraform"
}
}
variable "type" {
description = "(Optional) Defined if the loadbalancer is private or public"
type = string
default = "public"
}
variable "frontend_subnet_id" {
description = "(Optional) Frontend subnet id to use when in private mode"
type = string
default = ""
}
variable "frontend_private_ip_address" {
description = "(Optional) Private ip address to assign to frontend. Use it with type = private"
type = string
default = ""
}
variable "frontend_private_ip_address_allocation" {
description = "(Optional) Frontend ip allocation type (Static or Dynamic)"
type = string
default = "Dynamic"
}
variable "lb_sku" {
description = "(Optional) The SKU of the Azure Load Balancer. Accepted values are Basic and Standard."
type = string
default = "Basic"
}
variable "lb_probe" {
description = "(Optional) Protocols to be used for lb health probes. Format as [protocol, port, request_path]"
type = map(any)
default = {}
}
variable "pip_sku" {
description = "(Optional) The SKU of the Azure Public IP. Accepted values are Basic and Standard."
type = string
default = "Basic"
}