-
Notifications
You must be signed in to change notification settings - Fork 7
/
variables.tf
115 lines (102 loc) · 3.07 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
103
104
105
106
107
108
109
110
111
112
113
114
115
variable "region" {
description = "The region into which to deploy the load balancer."
}
variable "vpc_id" {
description = "The ID of the VPC into which to deploy the load balancer."
}
variable "subnet_ids" {
description = "The IDs of the subnets for the NLB."
type = list(string)
}
variable "component" {
description = "The component for which the load balancer is being created."
}
variable "deployment_identifier" {
description = "An identifier for this instantiation."
}
variable "enable_cross_zone_load_balancing" {
description = "Whether or not to enable cross zone load balancing. Defaults to false."
type = bool
default = false
nullable = false
}
variable "expose_to_public_internet" {
description = "Whether or not to the NLB should be internet facing (\"yes\" or \"no\")."
type = bool
default = false
nullable = false
}
variable "dns" {
description = "Details of DNS records to point at the created load balancer. Expects a domain_name, used to create each record and a list of records to create. Each record object includes a zone_id referencing the hosted zone in which to create the record."
type = object({
domain_name: string,
records: optional(list(object({zone_id: string})))
})
default = {
domain_name: null,
records: []
}
nullable = false
}
variable "target_groups" {
description = "Details of target groups to create."
type = list(object({
key: string,
port: string,
protocol: string,
target_type: optional(string),
deregistration_delay: optional(number),
health_check: optional(object({
port: optional(string),
protocol: optional(string),
interval: optional(number),
healthy_threshold: optional(number),
unhealthy_threshold: optional(number)
}), {
port: null,
protocol: null,
interval: null,
healthy_threshold: null,
unhealthy_threshold: null
})
}))
default = []
nullable = false
}
variable "listeners" {
description = "Details of listeners to create."
type = list(object({
key: string,
port: string,
protocol: string,
certificate_arn: optional(string),
ssl_policy: optional(string),
default_action: object({
type: string,
target_group_key: string
})
}))
default = []
nullable = false
}
variable "enable_deletion_protection" {
description = "If true, deletion of the load balancer will be disabled via the AWS API. This will prevent Terraform from deleting the load balancer."
default = false
nullable = false
}
variable "enable_access_logs" {
description = "Whether or not to enable access logs on the load balancer."
type = bool
default = false
nullable = false
}
variable "access_logs_bucket_name" {
description = "The name of the S3 bucket in which to store access logs when `enable_access_logs` is `true`."
type = string
default = null
}
variable "access_logs_bucket_prefix" {
description = "The prefix to use for objects in the access logs S3 bucket when `enable_access_logs` is `true`. Logs are stored in the root if `null`."
type = string
default = null
}