lib/ufo/cfn/stack/builder/resources/target_group.rb in ufo-6.0.2 vs lib/ufo/cfn/stack/builder/resources/target_group.rb in ufo-6.0.3
- old
+ new
@@ -30,10 +30,25 @@
]
}
props[:TargetType] = "ip" if vars[:container][:network_mode] == "awsvpc"
props[:HealthCheckPort] = vars[:container][:port] if vars[:elb_type] == "network" && vars[:network_mode] == "awsvpc"
+ props[:HealthCheckPath] = health_check_path
+ props[:HealthCheckIntervalSeconds] = health_check_interval_seconds
+ props[:HealthyThresholdCount] = healthy_threshold_count
+ props[:UnhealthyThresholdCount] = unhealthy_threshold_count
props
+ end
+
+ meths = %w[
+ health_check_interval_seconds
+ health_check_path
+ healthy_threshold_count
+ unhealthy_threshold_count
+ ]
+ delegate *meths, to: :elb
+ def elb
+ Ufo.config.elb
end
end
end