Improve logging for the template function `atmos.Component`. Generate backend config and provider override files in `atmos.Component` function @aknysh (#674)
what
- Improve logging for the template function
atmos.Component
- Generate backend config and provider override files in
atmos.Component
function - Update docs
why
-
Add more debugging information and fix issues with the initial implementation of the
atmos.Component
function when the backend config filebackend.tf.json
(if enabled inatmos.yaml
) and provider overrides fileproviders_override.tf.json
(if configured in theproviders
section) were not generated, which prevented the functionatmos.Component
from returning the outputs of the component when executing in GitHub actions -
When the environment variable
ATMOS_LOGS_LEVEL
is set toTrace
, the template functionatmos.Component
will log the execution flow and the results of template evaluation - useful for debuggingATMOS_LOGS_LEVEL=Trace atmos describe component <component> -s <stack> ATMOS_LOGS_LEVEL=Trace atmos terraform plan <component> -s <stack> ATMOS_LOGS_LEVEL=Trace atmos terraform apply <component> -s <stack>