I'm trying to deploy a NLB with a TCP health check.
However I have an error saying I can't set a "matcher" or "path" attribute If using a TCP health check but I don't have these attributes listed in my code. They are defaulting at "null" value in your source code and Terraform is not treating it as null but as if the parameter was set.
[X] β I have searched the open/closed issues and my issue is not listed.
Versions
Module version [Required]: 9.11
Terraform version: Terraform v1.9.2
Provider version(s):
hashicorp/aws v5.74.0
terragrunt version v0.54.22
Reproduction Code [Required]
Steps to reproduce the behavior:
Create a network load balancer with the following health_check attribute :
After further testing, it seems the issue is because the health check is already created as HTTP.
If I try to create a new target group no issue to set the health check protocol as TCP.
Description
I'm trying to deploy a NLB with a TCP health check. However I have an error saying I can't set a "matcher" or "path" attribute If using a TCP health check but I don't have these attributes listed in my code. They are defaulting at "null" value in your source code and Terraform is not treating it as null but as if the parameter was set.
Versions
Module version [Required]: 9.11
Terraform version: Terraform v1.9.2
Provider version(s): hashicorp/aws v5.74.0 terragrunt version v0.54.22
Reproduction Code [Required]
Steps to reproduce the behavior:
Create a network load balancer with the following health_check attribute :
Expected behavior
The target group should be deployed.
Actual behavior
β Attribute "health_check[0].matcher" cannot be specified when "health_check[0].protocol" is "TCP". β health_check[0].path
This is because the source code set these attributes as null if they are not set in the code. From your module main.tf