From 1673ec7f061b489d62f32714abedac95704bda4f Mon Sep 17 00:00:00 2001 From: Andriy Zahornyak Date: Tue, 15 Aug 2023 16:19:28 +0300 Subject: [PATCH] add protocol_version support for tg --- README.md | 1 + main.tf | 1 + variables.tf | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 813ef31..1fbd751 100644 --- a/README.md +++ b/README.md @@ -442,6 +442,7 @@ module "ecs-service" { | [ordered\_placement\_strategy](#input\_ordered\_placement\_strategy) | ordered\_placement\_strategy | `any` | `{}` | no | | [parameter\_prefix](#input\_parameter\_prefix) | prefix for parameter store parameter. For example '/develop/service/'. So parameter 'DEBUG' will have '/develop/service/DEBUG' name on the parameter store | `string` | `null` | no | | [placement\_constraints](#input\_placement\_constraints) | placement\_constraints | `any` | `{}` | no | +| [protocol\_version](#input\_protocol\_version) | target group protocol version | `string` | `null` | no | | [requires\_compatibilities](#input\_requires\_compatibilities) | Compatibilities for ECS task. Available: 'FARGATE', 'FARGATE\_SPOT', 'EC2' etc. | `list(string)` |
[
"FARGATE"
]
| no | | [retention\_in\_days](#input\_retention\_in\_days) | retention\_in\_days | `number` | `60` | no | | [route\_53\_zone\_id](#input\_route\_53\_zone\_id) | Route 53 zone id. | `string` | `null` | no | diff --git a/main.tf b/main.tf index f90c793..0d0f14e 100644 --- a/main.tf +++ b/main.tf @@ -182,6 +182,7 @@ resource "aws_lb_target_group" "service" { target_type = var.tg_target_type vpc_id = var.vpc_id deregistration_delay = var.deregistration_delay + protocol_version = var.protocol_version health_check { enabled = try(var.health_check.enabled, null) interval = try(var.health_check.interval, null) diff --git a/variables.tf b/variables.tf index a44970e..1a057d2 100644 --- a/variables.tf +++ b/variables.tf @@ -275,5 +275,11 @@ variable "discovery_registry_id" { default = null } +variable "protocol_version" { + description = "target group protocol version" + type = string + default = null +} +