I added health_check_matcher so that Health Checks that use HTTP protocol can actually be created.
health_check_matcher is disabled if health_check_protocol isn't HTTP, like health_check_path
why
If you specify a NLB that uses HTTP checks (totally valid), there wasn't a way of specifying matcher which lead to a HTTP 400 from AWS API when trying to apply, because matcher was presumably null.
I was working on a project that required a NLB, but also HTTP health checks, which I was unable to apply before I forked the repo and added matcher.
references
Fixes this error when using the module as of v0.11.0 because there was no way to set matcher
Error: modifying Target Group: ValidationError: Health check matcher HTTP code cannot be empty status code: 400, request id: cc6e7476-8bbc-4b5b-86a6-025de05736f1
with module.nlb.aws_lb_target_group.default
on .terraform/modules/hive_nlb/main.tf line 60, in resource "aws_lb_target_group" "default":
what
health_check_matcher
so that Health Checks that use HTTP protocol can actually be created.health_check_matcher
is disabled ifhealth_check_protocol
isn't HTTP, likehealth_check_path
why
matcher
which lead to a HTTP 400 from AWS API when trying to apply, becausematcher
was presumably null.references
Fixes this error when using the module as of v0.11.0 because there was no way to set matcher