You can add your own custom helper methods to Terraspace. This is powerful because you can extend and change Terraspace itself.
There are 3 types of helpers:
- Project-Level Helpers: Globally available to all modules in the Terraspace project.
- Stack-Level Helpers: Only locally available to the specific stack they are defined in.
- Module-Level Helpers: Only locally available to the specific module they are defined in.
There are several types of helpers you can define, so you may be unsure which type to use. When in doubt, use stack-level helpers. It nice to keep the helpers scope to the specific stack that needs them.
For a helper example use-case, check out the Patterns Different Versions Docs.