@@ -257,12 +257,12 @@ resource "aws_lb_target_group" "application-http" {
257257 list (element (compact (split (" ," ,local. instance_http_ports )), count. index ))
258258 )} "
259259
260- port = " ${ element (compact (split (" ," ,local. instance_http_ports )), count. index )} "
261- protocol = " HTTP"
262- vpc_id = " ${ var . vpc_id } "
260+ port = " ${ element (compact (split (" ," ,local. instance_http_ports )), count. index )} "
261+ protocol = " HTTP"
262+ target_type = " ${ var . target_type } "
263+ vpc_id = " ${ var . vpc_id } "
263264
264265 # deregistration_delay = "${}"
265- # target_type = "${}"
266266 health_check {
267267 interval = " ${ var . health_check_interval } "
268268 path = " ${ var . health_check_path } "
@@ -300,12 +300,12 @@ resource "aws_lb_target_group" "application-https" {
300300 list (element (compact (split (" ," ,local. instance_https_ports )), count. index ))
301301 )} "
302302
303- port = " ${ element (compact (split (" ," ,local. instance_https_ports )), count. index )} "
304- protocol = " HTTP"
305- vpc_id = " ${ var . vpc_id } "
303+ port = " ${ element (compact (split (" ," ,local. instance_https_ports )), count. index )} "
304+ protocol = " HTTP"
305+ target_type = " ${ var . target_type } "
306+ vpc_id = " ${ var . vpc_id } "
306307
307308 # deregistration_delay = "${}"
308- # target_type = "${}"
309309 health_check {
310310 interval = " ${ var . health_check_interval } "
311311 path = " ${ var . health_check_path } "
@@ -372,10 +372,10 @@ resource "aws_lb_target_group" "network" {
372372 protocol = " TCP"
373373 stickiness = []
374374 tags = " ${ module . label . tags } "
375+ target_type = " ${ var . target_type } "
375376 vpc_id = " ${ var . vpc_id } "
376377
377378 # deregistration_delay = "${}"
378- # target_type = "${}"
379379 lifecycle {
380380 create_before_destroy = true
381381 }
@@ -462,3 +462,4 @@ resource "aws_lb_listener_rule" "this" {
462462 }
463463}
464464*/
465+
0 commit comments