Similar to the implemented in the tf_common module of terraform.
Create a common composition or functions that contains some basic logic, acronyms used in naming related to environment or location, some maps and collections to determinate the tenant from current location, and something else.
In order to have the greatest possible coding options, it will be coded in Go.
The function should allow to be invoked with different parameters that determine the expected functionality (or set of expected output values), with the complexity of being able to handle dynamic parameter sets (a parameter would be a collection of values).
Also include in the task scope the call to the custom function
Similar to the implemented in the tf_common module of terraform.
Create a common composition or functions that contains some basic logic, acronyms used in naming related to environment or location, some maps and collections to determinate the tenant from current location, and something else. In order to have the greatest possible coding options, it will be coded in Go.
The function should allow to be invoked with different parameters that determine the expected functionality (or set of expected output values), with the complexity of being able to handle dynamic parameter sets (a parameter would be a collection of values).
Also include in the task scope the call to the custom function