hashicorp / terraform-provider-consul

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

`config_entry` should ignore `Status` key when determining diffs #359

Closed sorenisanerd closed 10 months ago

sorenisanerd commented 11 months ago

The docs for consul_config_entry has a warning:

Because the schema in a consul_config_entry resource can very widely
between the various configuration entry kinds, it is necessary to
explicitly define every attribute to avoid Terraform reporting a diff
on the resource.

I can handle littering my configuration with a bunch of nulls and []s, but having to embed the contents of the Status key of my api-gateway, http-route, and tcp-route in my Terraform is ridiculous.

Because it's a JSON string, I can't use lifecycle.ignore_changes to work around it either.

remilapeyre commented 11 months ago

Hi @sorenisanerd, we are working on adding additional resources for the config entries that will alleviate this issues. consul_config_entry should still be fixed thought. I will work on this.