Improve Terragrunt + Terratest documentation and deprecate Tg* functions#1638
Merged
james00012 merged 3 commits intomainfrom Dec 23, 2025
Merged
Conversation
Deprecate terragrunt-related functions in modules/terraform: - TgApplyAll, TgApplyAllE -> terragrunt.ApplyAll - TgDestroyAll, TgDestroyAllE -> terragrunt.DestroyAll - TgPlanAllExitCode, TgPlanAllExitCodeE -> terragrunt.PlanAllExitCode - ValidateInputs, InitAndValidateInputs -> terragrunt package - TgInvalidBinary, AssertTgPlanAllExitCode -> terragrunt package Add documentation: - New testing-terragrunt.md page with single/multi-module patterns - Add terragrunt to packages-overview.md - Update examples.yml with single-module and multi-module entries Add multi-module example: - examples/terragrunt-multi-module-example with VPC -> Database -> App - Update test/terragrunt_example_test.go with both testing patterns Closes #1636
7628e5c to
fff5753
Compare
denis256
previously approved these changes
Dec 19, 2025
- TestTerragruntExample: Use OutputAll instead of Output because terragrunt returns all outputs in the full JSON format even when a specific key is requested - TestTerragruntMultiModuleExample: Copy the parent folder including modules since terragrunt.hcl files reference ../modules
Move test/terragrunt_example_test.go to modules/terragrunt/ since it's terragrunt-related. Also fix test isolation by copying examples to temp folders to avoid state conflicts between parallel test runs.
denis256
approved these changes
Dec 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
modules/terraformmodule (TgApplyAll, TgDestroyAll, TgPlanAllExitCode, ValidateInputs, etc.)Test plan
Closes #1636