Last updated
Was this helpful?
Was this helpful?
# Route53 variables
acm_external_ssl_certificate_arn = "arn:aws:acm:ap-northeast-2:816736805842:certificate/9d4a371f-80c5-4087-9cb5-b2636f554da7"variable "acm_external_ssl_certificate_arn" {
description = "ssl cert id"
default = ""
}#################### Listener for HTTPS service
resource "aws_lb_listener" "external_443" {
load_balancer_arn = aws_lb.external.arn
port = "443"
protocol = "HTTPS"
# If you want to use HTTPS, then you need to add certificate_arn here.
certificate_arn = var.acm_external_ssl_certificate_arn
default_action {
target_group_arn = aws_lb_target_group.external.arn
type = "forward"
}
}