Skip to content

Commit 685fd10

Browse files
committed
refactor(modules/alb): add nullable flags to variables
1 parent 269d6e6 commit 685fd10

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

modules/alb/variables.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,34 @@ variable "name" {
1111
variable "internal" {
1212
description = "(Optional) If true, the LB will be internal."
1313
type = bool
14+
nullable = false
1415
default = false
1516
}
1617

1718
variable "security_groups_ids" {
1819
description = "(Optional) List of security group IDs to assign to the LB."
1920
type = list(string)
21+
nullable = false
2022
default = []
2123
}
2224

2325
variable "subnets_ids" {
2426
description = "(Optional) List of subnet IDs to attach to the LB."
2527
type = list(string)
28+
nullable = false
2629
}
2730

2831
variable "preserve_host_header" {
2932
description = "(Optional) Whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change."
3033
type = bool
34+
nullable = false
3135
default = true
3236
}
3337

3438
variable "enable_deletion_protection" {
3539
description = "(Optional) If true, deletion of the load balancer will be disabled via the AWS API."
3640
type = bool
41+
nullable = false
3742
default = false
3843
}
3944

@@ -60,6 +65,7 @@ variable "connection_logs" {
6065
variable "tags" {
6166
description = "(Optional) Map of tags to assign to the resource."
6267
type = map(string)
68+
nullable = false
6369
default = {}
6470
}
6571

@@ -78,7 +84,8 @@ variable "target_groups" {
7884
health_check = optional(any, null)
7985
tags = optional(map(string), {})
8086
}))
81-
default = {}
87+
nullable = false
88+
default = {}
8289
}
8390

8491
################################################################################
@@ -102,6 +109,8 @@ variable "listeners" {
102109
ssl_policy = optional(string, "ELBSecurityPolicy-TLS13-1-2-2021-06")
103110
tags = optional(map(string), {})
104111
}))
112+
nullable = false
113+
default = {}
105114
}
106115

107116
################################################################################
@@ -141,5 +150,6 @@ variable "listener_rules" {
141150
}))
142151
tags = optional(map(string), {})
143152
}))
144-
default = {}
153+
nullable = false
154+
default = {}
145155
}

0 commit comments

Comments
 (0)