Hah...Terraform is called "Infrastructure as code", so it's HCL language is "code", not configuration, at least by my definition.
The whole point of configuration is that it's not code.
I use a simple litmus test: can your system work at least to some extent with empty configuration file? If not, you went too far and need to simplify.