Skip to content

Commit 64456b9

Browse files
committed
Add missing variables
1 parent c6ea8ba commit 64456b9

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,23 @@ module "ecs-alb" {
4040
target_group_health_check_healthy_threshold = var.lb_target_group_health_check_healthy_threshold
4141
target_group_health_check_unhealthy_threshold = var.lb_target_group_health_check_unhealthy_threshold
4242
target_group_health_check_matcher = var.lb_target_group_health_check_matcher
43+
44+
# Certificates
45+
default_certificate_arn = var.default_certificate_arn
46+
ssl_policy = var.ssl_policy
47+
additional_certificates_arn_for_https_listeners = var.additional_certificates_arn_for_https_listeners
4348
}
4449

50+
51+
default_certificate_arn string
52+
Description: (Optional) The ARN of the default SSL server certificate. Required if var.https_ports is set.
53+
ssl_policy string
54+
Description: (Optional) The name of the SSL Policy for the listener. . Required if var.https_ports is set.
55+
56+
additional_certificates_arn_for_https_listeners list
57+
Description: (Optional) List of SSL server certificate ARNs for HTTPS listener. Use it if you need to set additional certificates besides default_certificate_arn
58+
Default: []
59+
4560
#------------------------------------------------------------------------------
4661
# AWS ECS SERVICE
4762
#------------------------------------------------------------------------------

variables.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,24 @@ variable "lb_target_group_health_check_matcher" {
355355
type = string
356356
default = "200"
357357
}
358+
359+
#------------------------------------------------------------------------------
360+
# AWS LOAD BALANCER - Target Groups
361+
#------------------------------------------------------------------------------
362+
variable "ssl_policy" {
363+
description = "(Optional) The name of the SSL Policy for the listener. . Required if var.https_ports is set."
364+
type = string
365+
default = null
366+
}
367+
368+
variable "default_certificate_arn" {
369+
description = "(Optional) The ARN of the default SSL server certificate. Required if var.https_ports is set."
370+
type = string
371+
default = null
372+
}
373+
374+
variable "additional_certificates_arn_for_https_listeners" {
375+
description = "(Optional) List of SSL server certificate ARNs for HTTPS listener. Use it if you need to set additional certificates besides default_certificate_arn"
376+
type = list
377+
default = []
378+
}

0 commit comments

Comments
 (0)