Add tg_output variable for JSON output #54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a new output variable
tg_output
that contains the Terragrunt output in JSON format. This allows users to easily parse and extract specific values from the Terragrunt output using tools like jq within their GitHub Actions workflows.Example usage:
This feature is useful when you need Terragrunt output values for the next steps in your workflow.
It eliminates the need to hardcode resource names in template files, making your workflow more dynamic and flexible.
In the AWS provider, there are several situations where this feature can be particularly useful
tg_output
, you can automate the cache purge process in your workflow.tg_output
, you can easily access the service and cluster names, enabling you to implement a wait step in your workflow.Release Notes (draft)
Added / Removed / Updated [X].
Added
tg_output
variable containing Terragrunt output in JSON format.Migration Guide
N/A