Closed remilapeyre closed 1 year ago
I haven't reviewed the code, but I'm running into the issue that this is aiming to address. Specifically, I want to use AppRole between Consul and Vault, and there's currently no way to trick Terraform into passing the Params
struct that Consul expects.
@remilapeyre A comment about the general approach here, and please disregard if you think that's not achievable. Do you think it's possible instead of introducing
config_json
we can accept the new format inconfig
and at the read time, check if it's json or not by attempting an unmarchall? As I see both fields have the same type schema and decode tomap[string]interface{}
Hi @dhiaayachi this is not possible with the version of the Terraform plugin protocol that we are using now. I'm working a new major version of the Consul provider that uses Terraform protocol v6 and that should have a much better user experience for this kind of attributes.
When configuration Consul to use Vault as the certificate authority provider for Consul Connect the configuration can have more than strings so we need to use jsonencode for Terraform to accept the configuration.
Also remove the copyright notices in the examples.
Closes https://github.com/hashicorp/terraform-provider-consul/issues/324