config/terraform folder is for common configurations. All files in the folder get built and included with the deployed module. Common examples:
- Backend Config: configure which backend to use by default. IE: S3
- Provider Config: configure which provider to use by default. IE: AWS
- Terraform Tfvars: Tfvars you want always set.
- Locals: Locals you want always available.
Files that end with
.rb get processed with different strategies as part of being built.
|.tf||Will be processed with ERB. This allows add a little extra power to the Terraform HCL language with templating logic.|
|.rb||Will be processed by the Terraspace Ruby DSL. This allows you to write Terraform code with Ruby.|
It’s also configurable and overridable within each module itself. The next docs cover how it works.