Always use TCP health check protocol for target groups

This commit is contained in:
Peter Rifel 2020-11-06 11:08:43 -06:00
parent 370092cb5a
commit 54decbc479
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
2 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ resource "aws_lb_target_group" "tcp-complex-example-com-vpjolq" {
resource "aws_lb_target_group" "tls-complex-example-com-5nursn" {
health_check {
healthy_threshold = 2
protocol = "TLS"
protocol = "TCP"
unhealthy_threshold = 2
}
name = "tls-complex-example-com-5nursn"

View File

@ -290,7 +290,7 @@ func (_ *TargetGroup) RenderTerraform(t *terraform.TerraformTarget, a, e, change
HealthCheck: terraformTargetGroupHealthCheck{
HealthyThreshold: *e.HealthyThreshold,
UnhealthyThreshold: *e.UnhealthyThreshold,
Protocol: *e.Protocol,
Protocol: elbv2.ProtocolEnumTcp,
},
}