I had some questions with regards to the Terraform module standards as referenced here: Standard Module Structure - Terraform by HashiCorp
I am working on getting some TF modules ready to be published to a TF registry and we have a convention of keeping the outputs close to the module/resource definitions so developers don’t need to switch files. The documentation states that main.tf , variables.tf , outputs.tf, are recommended and not required. But it also states the following:
outputs.tfshould contain the declarations for variables and outputs, respectively.
The language suggests that the variables and outputs “should” be placed in these files, but not 100% required. Is this accurate and will the registry reject if the outputs are located outside of outputs.tf?