Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource "aws_lb_target_group" "http" {

name = "${local.base_name}-http"
port = var.target_type == "lambda" ? null : var.target_http_port
protocol = var.target_type == "lambda" ? "HTTP" : "HTTP"
protocol = var.target_type == "lambda" ? null : "HTTP"
target_type = var.target_type
vpc_id = var.target_type == "lambda" ? null : var.vpc_id

Expand All @@ -91,7 +91,7 @@ resource "aws_lb_target_group" "https" {
count = var.enable_https ? 1 : 0
name = "${local.base_name}-https"
port = var.target_type == "lambda" ? null : var.target_http_port
protocol = var.target_type == "lambda" ? "HTTP" : "HTTPS"
protocol = var.target_type == "lambda" ? null : "HTTPS"
target_type = var.target_type
vpc_id = var.target_type == "lambda" ? null : var.vpc_id

Expand Down