hashicorp / terraform-provider-consul

Terraform Consul provider
https://www.terraform.io/docs/providers/consul/
Mozilla Public License 2.0
124 stars 113 forks source link

Missing "tls_server_name" parameter in consul_service resource #391

Open marrcow opened 8 months ago

marrcow commented 8 months ago

Hi there,

I wanted to register an external service in the Consul catalog, using the "consul_service" resource in Terraform. My service is behind AWS ALB, which based on the Host header passes the request to the proper (my) service. My service listens on port 443.

I want to use "consul-esm" to have active health checks, but I cannot provide the "tls_server_name" parameter in the health check stanza, because it is not supported by Terraform, while it is by Consul. This means the TLS certificate is checked against my ALB address and I cannot override it.

Is there a plan to add this "tls_server_name" parameter to the "check" stanza?

Thanks

Consul Provider Version: 2.20.0 Terraform Version 1.6.6

Affected Resource

bwieckow commented 8 months ago

We are facing the same issue