-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables-lb.tf
72 lines (59 loc) · 2.33 KB
/
variables-lb.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
variable "sku_name" {
description = "The Name of the SKU used for this Load Balancer. Possible values are `Basic` and `Standard`."
type = string
default = "Standard"
}
variable "public_ip_allocated" {
description = "True to allocate a Public IP to the Load Balancer."
type = bool
default = false
}
variable "public_ip_sku" {
description = "SKU name for the Public IP address, can be `Basic` or `Standard`."
type = string
default = "Standard"
}
variable "public_ip_allocation_method" {
description = "Allocation method for the Public IP address, can be `Static`, `Dynamic`."
type = string
default = "Static"
}
variable "public_ip_custom_domain_name_label" {
description = "Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. Defaults to Load Balancer's name, set `null` to disable."
type = string
default = ""
}
variable "nat_enabled" {
description = "True to enable NAT through Load Balancer outbound rules."
type = bool
default = false
}
variable "nat_allocated_outbound_ports" {
description = "Number of allocated outbound ports for NAT."
type = number
default = 1024
}
variable "nat_protocol" {
description = "Transport protocol to use for NAT."
type = string
default = "All"
}
variable "frontend_ip_configurations" {
description = "`frontend_ip_configuration` blocks as documented (here)[https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/lb#frontend_ip_configuration]."
type = map(object({
subnet_id = string
zones = optional(list(number))
private_ip_address = optional(string)
private_ip_address_allocation = optional(string, "Dynamic")
private_ip_address_version = optional(string, "IPv4")
public_ip_address_id = optional(string)
public_ip_prefix_id = optional(string)
gateway_load_balancer_frontend_ip_configuration_id = optional(string)
}))
default = {}
}
variable "zones" {
description = "Specifies a list of Availability Zones in which the Public IP Address for this Load Balancer should be located. Also used as default for `frontend_ip_configuration` zones."
type = list(number)
default = [1, 2, 3]
}