Skip to content

Commit

Permalink
add protocol_version support for tg
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Aug 15, 2023
1 parent 25ae2e5 commit 1673ec7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ module "ecs-service" {
| <a name="input_ordered_placement_strategy"></a> [ordered\_placement\_strategy](#input\_ordered\_placement\_strategy) | ordered\_placement\_strategy | `any` | `{}` | no |
| <a name="input_parameter_prefix"></a> [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 |
| <a name="input_placement_constraints"></a> [placement\_constraints](#input\_placement\_constraints) | placement\_constraints | `any` | `{}` | no |
| <a name="input_protocol_version"></a> [protocol\_version](#input\_protocol\_version) | target group protocol version | `string` | `null` | no |
| <a name="input_requires_compatibilities"></a> [requires\_compatibilities](#input\_requires\_compatibilities) | Compatibilities for ECS task. Available: 'FARGATE', 'FARGATE\_SPOT', 'EC2' etc. | `list(string)` | <pre>[<br> "FARGATE"<br>]</pre> | no |
| <a name="input_retention_in_days"></a> [retention\_in\_days](#input\_retention\_in\_days) | retention\_in\_days | `number` | `60` | no |
| <a name="input_route_53_zone_id"></a> [route\_53\_zone\_id](#input\_route\_53\_zone\_id) | Route 53 zone id. | `string` | `null` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,11 @@ variable "discovery_registry_id" {
default = null
}

variable "protocol_version" {
description = "target group protocol version"
type = string
default = null
}



0 comments on commit 1673ec7

Please sign in to comment.