Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging for the template function atmos.Component. Generate backend config and provider override files in atmos.Component function #674

Merged
merged 8 commits into from
Aug 17, 2024

Conversation

aknysh
Copy link
Member

@aknysh aknysh commented Aug 17, 2024

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 file backend.tf.json (if enabled in atmos.yaml) and provider overrides file providers_override.tf.json (if configured in the providers section) were not generated, which prevented the function atmos.Component from returning the outputs of the component when executing in GitHub actions

  • When the environment variable ATMOS_LOGS_LEVEL is set to Trace, the template function atmos.Component will log the execution flow and the results of template evaluation - useful for debugging

     ATMOS_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>

@aknysh aknysh added the patch A minor, backward compatible change label Aug 17, 2024
@aknysh aknysh requested a review from osterman August 17, 2024 19:37
@aknysh aknysh self-assigned this Aug 17, 2024
@aknysh aknysh requested review from a team as code owners August 17, 2024 19:37
@aknysh aknysh merged commit b7f8e30 into main Aug 17, 2024
23 of 24 checks passed
@aknysh aknysh deleted the update-atmos-component-function-2 branch August 17, 2024 21:07
Copy link

These changes were released in v1.86.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch A minor, backward compatible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants