Summary
When using the Terraform consul_config_entry resource to create a Consul mesh configuration entry, a conflict arises between Terraform's schema validation and Consul's expected configuration structure.
In Consul, when manually creating a configuration entry of kind = "mesh", there is no name field present. However, Terraform requires a name argument for all consul_config_entry resources, regardless of kind. This leads to inconsistencies when a custom name is used.
Symptoms
If you define a Terraform configuration like this: