-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
81 lines (69 loc) · 2.39 KB
/
variables.tf
File metadata and controls
81 lines (69 loc) · 2.39 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
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
variable "load_balancer_type" {
type = string
default = "application"
description = "Type of the Load Balancer. Specify one of `application`, `network` or `gateway`."
validation {
condition = var.load_balancer_type == "application" || var.load_balancer_type == "network" || var.load_balancer_type == "gateway"
error_message = "The `load_balancer_type` must be either `application`, `network` or `gateway`."
}
}
variable "vpc_id" {
type = string
default = null
description = "ID of the VPC. Required if `security_group_enabled` is `true`."
}
variable "subnet_ids" {
type = list(string)
default = []
description = "List of subnet IDs for the Load Balancer. The Load Balancer will be created in the VPC associated with the subnet IDs."
}
variable "ip_address_type" {
type = string
default = null
description = "Address type for ALB possible. Specify one of `ipv4`, `dualstack`."
}
variable "enable_deletion_protection" {
type = bool
default = false
description = "If true, deletion of the load balancer will be disabled via the AWS API. This will prevent Terraform from deleting the load balancer."
}
variable "enable_http2" {
type = bool
default = false
description = "Indicates whether HTTP/2 is enabled in `application` load balancers."
}
variable "security_group_ids" {
type = list(string)
default = []
description = "Security group IDS to associate with the Load Balancer."
}
variable "access_logs_prefix" {
type = string
default = ""
description = "Prefix for ALB access logs."
}
variable "access_logs_enabled" {
type = bool
default = true
description = "Whether or not ALB access logs should be enabled."
}
variable "access_logs_force_destroy" {
type = bool
default = false
description = "Set to `true` to force access logs bucket."
}
variable "security_group_enabled" {
type = bool
default = false
description = "Set to `true` to create a self-referencing security group for all ports."
}
variable "idle_timeout" {
type = number
default = 60
description = "The time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type `application`."
}
variable "internal" {
type = bool
default = false
description = "Set to `true`, to create an internal Load Balancer."
}