-
Notifications
You must be signed in to change notification settings - Fork 16
/
variables.tf
116 lines (97 loc) · 3.09 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
116
variable "name_prefix" {
description = "A prefix used for naming resources."
type = string
}
variable "vpc_id" {
description = "The VPC ID."
type = string
}
variable "subnets" {
description = "A list of subnet IDs to attach to the LB."
type = list(string)
}
variable "load_balancer_type" {
description = "Type of load balancer to provision (network or application)."
type = string
default = "application"
}
variable "internal" {
description = "Provision an internal load balancer. Defaults to false."
type = bool
default = false
}
variable "access_logs" {
description = "An Access Logs block."
type = map(string)
default = {}
}
variable "idle_timeout" {
description = "(Optional) The time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type application."
type = number
default = 60
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = map(string)
default = {}
}
variable "enable_deletion_protection" {
type = bool
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
}
variable "enable_cross_zone_load_balancing" {
type = bool
description = "If true, cross-zone load balancing of the load balancer will be enabled. This is a network load balancer feature."
default = false
}
variable "enable_http2" {
description = "Indicates whether HTTP/2 is enabled in application load balancers."
type = bool
default = true
}
variable "ip_address_type" {
description = "The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 and dualstack."
type = string
default = "ipv4"
}
variable "subnet_mapping" {
description = "A list of subnet mapping blocks describing subnets to attach to network load balancer"
type = list(map(string))
default = []
}
variable "load_balancer_create_timeout" {
description = "Timeout value when creating the ALB."
type = string
default = "15m"
}
variable "load_balancer_update_timeout" {
description = "Timeout value when updating the ALB."
type = string
default = "15m"
}
variable "load_balancer_delete_timeout" {
description = "Timeout value when deleting the ALB."
type = string
default = "15m"
}
variable "enable_http_to_https_redirect" {
description = "Enable default redirect rule from port 80 to 443."
type = bool
default = false
}
variable "enable_ingress_security_group_rules" {
description = "Enable ingress security group rules"
type = bool
default = true
}
variable "cidr_blocks_redirect" {
type = list(string)
description = "List of CIDR ranges to allow at security group level. Defaults to 0.0.0.0/0"
default = ["0.0.0.0/0"]
}
variable "description" {
default = "Managed by Terraform"
type = string
description = "The description of the all resources."
}