-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathvariable.tf
More file actions
56 lines (54 loc) · 1.66 KB
/
variable.tf
File metadata and controls
56 lines (54 loc) · 1.66 KB
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
# SPDX-FileCopyrightText: 2025 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
variable "vpc_id" {}
variable "cluster_name" {}
variable "name" {
description = "Load balancer name"
}
variable "internal" {
description = "Create load balancers for internal VPC"
default = true
}
variable "type" {
description = "Load balancer type"
default = "network"
}
variable "subnets" {
description = "List of subnet ids for this load balancer"
type = set(string)
}
variable "ports" {
description = "Map of listener to target port and protocol, the key is a name for listener and target group"
type = map(object({
listen = number
target = number
protocol = optional(string, "TCP")
type = optional(string, "ip")
certificate_arn = optional(string, null)
enable_health_check = optional(bool, true)
health_check_protocol = optional(string, "TCP")
health_check_path = optional(string, null)
health_check_healthy_threshold = optional(number, 5)
health_check_unhealthy_threshold = optional(number, 2)
}))
default = {
"https" : {
listen = 443
target = 443
protocol = "TCP"
}
}
}
variable "ip_allow_list" {
type = set(string)
description = "List of IP sources to allow to connect to load balancers."
default = []
}
variable "enable_deletion_protection" {
default = true
}
variable "eks_security_groups" {
description = "List of EKS security group IDs (from module/eks/output.tf security_groups)"
type = list(string)
}