Skip to content

Commit

Permalink
Feat: add protocol version to target group (#51)
Browse files Browse the repository at this point in the history
* Feat: add protocol version to target group

* Bump required aws provoider version because of protocol_version

Co-authored-by: Lars Tobias Skjong-Børsting <[email protected]>
  • Loading branch information
mhd999 and larstobi authored Mar 29, 2021
1 parent 4874270 commit 763c9bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ resource "aws_lb_target_group" "task" {
unhealthy_threshold = lookup(health_check.value, "unhealthy_threshold", null)
}
}
protocol_version = var.protocol_version

# NOTE: TF is unable to destroy a target group while a listener is attached,
# therefor we have to create a new one before destroying the old. This also means
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,9 @@ variable "task_role_permissions_boundary_arn" {
default = ""
type = string
}

variable "protocol_version" {
description = "The protocol (HTTP) version."
default = "HTTP1"
type = string
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
aws = {
version = ">= 3.0.0"
version = ">= 3.34.0"
}
}
}

0 comments on commit 763c9bb

Please sign in to comment.