@@ -165,7 +165,7 @@ resource "aws_lb_target_group" "lb_https_tgs" {
165
165
}
166
166
name = " ${ var . name_prefix } -${ each . key } -https-${ each . value . target_group_port } "
167
167
port = each. value . target_group_port
168
- protocol = lookup (each. value , " target_group_protocol" , " HTTPS " )
168
+ protocol = lookup (each. value , " target_group_protocol" , " HTTP " )
169
169
vpc_id = var. vpc_id
170
170
deregistration_delay = var. deregistration_delay
171
171
slow_start = var. slow_start
@@ -182,7 +182,7 @@ resource "aws_lb_target_group" "lb_https_tgs" {
182
182
enabled = var. target_group_health_check_enabled
183
183
interval = var. target_group_health_check_interval
184
184
path = var. target_group_health_check_path
185
- protocol = lookup (each. value , " target_group_protocol" , " HTTPS " )
185
+ protocol = lookup (each. value , " target_group_protocol" , " HTTP " )
186
186
timeout = var. target_group_health_check_timeout
187
187
healthy_threshold = var. target_group_health_check_healthy_threshold
188
188
unhealthy_threshold = var. target_group_health_check_unhealthy_threshold
@@ -248,6 +248,12 @@ resource "aws_lb_listener" "lb_http_listeners" {
248
248
}
249
249
}
250
250
251
+ lifecycle {
252
+ ignore_changes = [
253
+ default_action # Can be changed by CodeDeploy when used with Fargate
254
+ ]
255
+ }
256
+
251
257
tags = var. tags
252
258
}
253
259
@@ -297,6 +303,12 @@ resource "aws_lb_listener" "lb_https_listeners" {
297
303
}
298
304
}
299
305
306
+ lifecycle {
307
+ ignore_changes = [
308
+ default_action # Can be changed by CodeDeploy when used with Fargate
309
+ ]
310
+ }
311
+
300
312
tags = var. tags
301
313
}
302
314
0 commit comments