I had a look at this but I don’t like the fact you need to statically define the configuration. I have variable number of masters and variable number of slaves and if I understand this correctly, adding a new backend server would need copypasting the replform config.
Have you considered creating LDAP providers for Terraform itself?