The current implementation uses some variables in scenarios when we do not need to change the values of these variables between workspaces/environments.
In these cases, we can simplify the code:
Replace the variable with a static value in the resources — when the value is used only once
Replace the variable with a local assignment — when the value is needed twice or more (including in the module outputs)
Who Benefits?
Future users and contributors of the template as values will be more explicit.
Why
The current implementation uses some variables in scenarios when we do not need to change the values of these variables between workspaces/environments.
In these cases, we can simplify the code:
Who Benefits?
Future users and contributors of the template as values will be more explicit.