Currently we assume that everything went as expected, and internal functions do not throw errors.
We need to add errors to be raised from internal functions, so we do not use log.Fatal in internal functions.
This will also require adding an additional environment state called "failed".
In addition, when an environment deployment encounters a "failed" or "delete" state - the process should stop instead of waiting with a loop back.
Currently we assume that everything went as expected, and internal functions do not throw errors. We need to add errors to be raised from internal functions, so we do not use log.Fatal in internal functions. This will also require adding an additional environment state called "failed".
In addition, when an environment deployment encounters a "failed" or "delete" state - the process should stop instead of waiting with a loop back.