chore(deps): update dependency gruntwork-io/terragrunt to v1 (terragrunt)#837
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency gruntwork-io/terragrunt to v1 (terragrunt)#837renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
858eefe to
44b720c
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
44b720c to
bff66e9
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
bff66e9 to
7f5c04b
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
7f5c04b to
54fb8dc
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
54fb8dc to
279d3ca
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
279d3ca to
829f7c6
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
829f7c6 to
6517b2b
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
6517b2b to
9708981
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
9708981 to
6ca2258
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
6ca2258 to
3e304bc
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
3e304bc to
d2b9369
Compare
Contributor
Plan Result (foo)
Change Result (Click me) # github_repository.example will be created
+ resource "github_repository" "example" {
+ allow_auto_merge = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
+ archived = false
+ default_branch = (known after apply)
+ delete_branch_on_merge = false
+ etag = (known after apply)
+ full_name = (known after apply)
+ git_clone_url = (known after apply)
+ html_url = (known after apply)
+ http_clone_url = (known after apply)
+ id = (known after apply)
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ name = "test-tfaction"
+ node_id = (known after apply)
+ primary_language = (known after apply)
+ private = (known after apply)
+ repo_id = (known after apply)
+ squash_merge_commit_message = "COMMIT_MESSAGES"
+ squash_merge_commit_title = "COMMIT_OR_PR_TITLE"
+ ssh_clone_url = (known after apply)
+ svn_url = (known after apply)
+ topics = (known after apply)
+ visibility = "public"
+ vulnerability_alerts = (known after apply)
+ web_commit_signoff_required = false
+ security_and_analysis (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy. |
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.
This PR contains the following updates:
v0.83.0→v1.0.7Release Notes
gruntwork-io/terragrunt (gruntwork-io/terragrunt)
v1.0.7Compare Source
✨ New Features
tfr://source URLs accept an optionalversionThe
versionquery parameter ontfr://source URLs is now optional. When omitted, Terragrunt queries the registry's list-versions endpoint and downloads the latest stable version, matching how OpenTofu and Terraform resolve a module reference that has no version constraint.Prereleases are excluded from resolution, so a registry that only publishes
4.0.0-rc1alongside3.3.0will pin to3.3.0. Pin a version explicitly with?version=when you need reproducible builds or want to opt into a prerelease.Thanks to @raman1236 for contributing this feature!
🐛 Bug Fixes
update_source_with_cas: preserve//subdiron a unit'sterraform.sourceWhen a unit's
terraform.sourceused the//subdir convention (for example,source = "../..//modules/foo") and opted intoupdate_source_with_cas, the rewritten source dropped the//subdirtail and the synthetic tree contained only the leaf module's files. A module that referenced a sibling via a relative path (source = "../bar") could not resolve that reference after materialization.Rewrites now preserve the original
//subdir(for example,cas::sha1:<hash>//modules/foo), and the synthetic tree is rooted at the path before//, so sibling files reachable via relative paths land in the materialized working directory.Sources without
//are unchanged: the tree stays scoped to the leaf module, and the rewritten reference has no//subdirtail.--filternow detects affected units on WindowsOn Windows,
terragrunt find --filter '[origin/main...HEAD]'(and its variants) returned no affected units even whengit diffreported changed files. Thesource=andreading=filters were affected by the same problem.Filter glob patterns are always written with forward slashes, but the affected-unit comparison was being made with Windows backslash separators, so nothing matched. Terragrunt now compares paths consistently with forward slashes on every platform, and the filter detects changed units on Windows as it already did on Linux and macOS.
Reported in #6214.
startswith,endswith,strcontains, andrun_cmdno longer panic on malformed callsCalling
startswith,endswith, orstrcontainswith the wrong number of arguments (for example a single argument instead of two) crashed Terragrunt instead of reporting a configuration error. Callingrun_cmdwith only option flags and no command (for examplerun_cmd("--terragrunt-quiet")) crashed the same way.These calls now return a clear error: a wrong-number-of-parameters error for the string functions, and an empty-command error for
run_cmd.The
--parallelismflag no longer accepts non-positive numbersPreviously, terragrunt commands that accept the --parallelism flag (or equivalently the
$TG_PARALLELISMenvironment variable) used to hang indefinitely when invoked with--parallelism=0.Terragrunt now validates that the value is positive and exits with an error otherwise.
Reported in #6211
🧪 Experiments Updated
cas— content-addressing for non-git sourcesCAS now covers module sources beyond git:
http(s), Amazon S3, Google Cloud Storage, and Mercurial. Repeat runs against an unchanged remote reuse the cached tree instead of downloading the bytes again.Before fetching, CAS issues a cheap remote probe (an HTTP
HEAD, an S3 object-attributes lookup, a GCS metadata read, orhg identify) to derive a cache key without pulling the source. On a hit, the cached tree is linked directly; on a miss, or when the remote exposes no usable signal, CAS downloads the source, ingests it, and keys the resulting tree by its content hash. A remote that publishes a new version under the same address pins to a new entry, so a stale cache cannot serve outdated bytes.cas— OpenTofu/Terraform registry sourcesModule sources of the form
tfr://...are now content-addressed in CAS. Repeat runs against the same pinned registry version reuse the cached module instead of re-downloading the archive from the registry.CAS resolves a
tfr://source by asking the registry where the underlying archive lives and uses that resolved URL as the cache key. Two runs that pin the same version share one entry; a republish under the same version pins to a new entry, so a stale cache cannot serve outdated bytes.stack-dependencies:unit.<name>.pathandstack.<name>.pathresolve invaluesThe
stack-dependenciesexperiment now exposesunit.<name>.pathandstack.<name>.pathwhen evaluating thevaluesattribute of aunitorstackblock, not only insideautoincludeblocks. A parent stack can pass the generated path of a sibling component down into a child stack, so a unit nested in that child stack can depend on a unit that lives at a different level of the hierarchy.A unit inside the
appstack readsvalues.vpc_pathand uses it as theconfig_pathof anautoincludedependency, wiring the cross-level relationship at generation time. Paths follow the same layout the generator produces, includingno_dot_terragrunt_stackon the referenced block.stack-dependencies: simplifiedunit.*/stack.*ref shapeThe
stack-dependenciesexperiment no longer resolvesstack.<name>.<unit_name>.pathorstack.<name>.<nested_stack>.path. Only the top-levelstack.<name>.pathandunit.<name>.pathforms remain.stack.<name>.nameandunit.<name>.nameare gone too; both only ever echoed the label that the reference already had to spell out.Nested references required parsing every nested catalog up front and conflicted with the reserved
nameandpathattributes on each ref: a nested unit namednameorpathcould not be addressed.To depend on a generated unit inside a stack, compute the path as
${stack.<name>.path}/<unit-relative-path>directly. The layout under a stack's generated directory followsno_dot_terragrunt_stackon the parent stack and on each unit, so hand-computed paths must mirror that resolution.stack-dependencies:.terragrunt-stack-originno longer writtenTerragrunt no longer writes the
.terragrunt-stack-originfile when generating nested stacks. Setupdate_source_with_cas = trueon yourunitandstackblocks if you would like relative paths in your catalog to resolve correctly instead.Pull Requests
✨ Features
tfr://module registry URLs by @yhakbar in #6112🐛 Bug Fixes
cas.WithFSby @yhakbar in #6195terragrunt.stack.hcl, includingautoincludeby @yhakbar in #6166terraform.sourceURLs with//by @yhakbar in #6218//by @yhakbar in #6234--parallelismvalue is positive by @ccmtaylor in #6212📖 Documentation
🧹 Chores
fatih/structsdependency by @yhakbar in #6186go-homedirdirect dependency by @yhakbar in #6184go-errorsas a dependency by @yhakbar in #6182//path test for source with CAS by @yhakbar in #6239v1.0.6Compare Source
🐛 Bug Fixes
terragruntno longer hangs whendownload_diris a non-hidden subdirectory of the unitSetting
download_dir(via the attribute,--download-dir, orTG_DOWNLOAD_DIR) to a subdirectory of the unit's working directory whose name did not start with a dot caused commands that prepare the OpenTofu or Terraform source (apply,plan,run, and similar) to hang.For example:
Here
terragrunt applywould copy./modintocache/, see the newcache/directory on the next read of the unit, and recurse into it. The default.terragrunt-cachewas unaffected because Terragrunt's source-copy step skips any directory whose name starts with a dot.These configurations now produce an immediate error identifying the source and destination paths.
mark-many-as-readexperiment now triggers during discoveryWith the
mark-many-as-readexperiment enabled, a unit whoseterraform { source = ... }pointed at a local module did not show up under--filter 'reading='filters that referenced files inside that module. Discovery would parse the unit, but the module files were never recorded as read, so the reading filter attribute could not match and the queue came back empty.The module walk now runs on the discovery code path as well, so changes to files in a local module source flow through to the units that depend on them.
terragrunt renderno longer crashes onexcludeorcatalogblocks with certain attributesRendering a config crashed with a
value has no attribute of that namepanic before any output could be produced when:excludeblock setno_run, orcatalogblock setdefault_template,no_shell, orno_hooks.These attributes are now carried through the render pipeline alongside the other fields on their respective blocks, so both blocks round-trip cleanly.
terragrunt renderno longer crashes on multipleerrors.ignoreblocks with mismatched signalsRendering a config that defined more than one
errors.ignoreblock crashed with aninconsistent list element typespanic when thesignalsmap was populated on one block and absent (or differently typed) on another. The same crash showed up in dependency-output evaluation, since both paths build the same rendered representation of the config.Each
ignoreblock is now rendered with a uniform shape. Indexed access (errors.ignore[0]), length, and iteration still work, and the signals map on each block is preserved as written.Suppress spurious
Unknown variable: dependencyerrors during dependency resolutionterragrunt planandapplyno longer printERROR Error: Unknown variable "dependency"lines when a unit pulls in a shared include (e.g. viafind_in_parent_folders) that referencesdependency.*outputs. The plans completed correctly, but the error lines cluttered CI logs.Resolves #6036.
terragrunt stackcommands no longer crash on stacks with multiple unitsRunning
terragrunt stack output(or any command that resolves concurrently parsing multiple configuration files) against a stack with several units could intermittently crash while the units were being parsed in parallel due to a race on internal bookkeeping of files read (used in the reading filter attribute).Parallel unit parsing now coordinates safely when recording which source files were read, preventing crashes.
terraform_binaryproperly respected when bothtofuandterraformare onPATHA regression in command execution caching resulted in over-caching the STDOUT result of
tofu --versionwhen bothtofuandterraformwere available onPATHandterraform_binarywas set. Early on in the execution flow, Terragrunt checks if OpenTofu is installed what its version is to determine if it supports setting of the automatic provider cache directory. This resulted in the value ofterraform_binarybeing ignored for later version checks to assess compliance withterraform_version_constraint.The version-detection cache used per run is now scoped to the binary that produced each entry, so the version recorded against an early default-binary resolution no longer leaks into the later resolution that honors
terraform_binary.🧪 Experiments Added
deep-mergeexperiment adds adeep_mergeHCL functionEnable the new
deep-mergeexperiment to use thedeep_merge(map1, map2, ...)HCL function.deep_mergerecursively merges map and object values. Later arguments override earlier arguments for overlapping keys, nested maps are merged recursively, lists are appended, andnullarguments are ignored.This is useful when composing
inputsfrom multiple decoded JSON, YAML, or HCL-derived maps:Calling
deep_mergewithout enabling thedeep-mergeexperiment returns an error.opt-out-auth— Opt out of--auth-provider-cmdduring discoveryEnable the new
opt-out-authexperiment to use--no-discovery-auth-provider-cmd(env:TG_NO_DISCOVERY_AUTH_PROVIDER_CMD), which disables the auth provider command during the discovery phase.Without the flag, Terragrunt assumes that
--auth-provider-cmdmust be run per parsed component during the discovery phase so that it can reliably resolve HCL functions such asget_aws_account_idandrun_cmd. On large repositories withrun --all --filter='reading=', this dominates wall-clock time because the auth command runs for every discovered unit rather than only the subset that will run.The
--no-discovery-auth-provider-cmdflag turns off auth invocations during discovery. The auth provider command still runs normally when running units.Units whose discovery-relevant blocks depend on credentials produced by
--auth-provider-cmdwill fail to parse with the flag set. Use it when you know that parsing will resolve successfully without any authentication done beforehand by Terragrunt.While this flag is experimental, you must also opt-in to the
opt-out-authexperiment by setting theTG_EXPERIMENTenvironment variable toopt-out-author by passing the--experiment=opt-out-authflag toterragrunt run. This flag might experience breaking changes based on community feedback for the duration of the experiment.e.g.
🧪 Experiments Updated
catalog-redesign— Interactive scaffold form onsPressing
sfrom the catalog list or detail view now opens an in-TUI form that prompts for every variable/value the selected component exposes. The form is modal: in navigate modejandk(or the arrow keys) move between fields andenterinteracts with the focused one. Required entries are flagged, and optional entries show their default in a muted style until the user opts in.enteron a text or HCL field switches the form into edit mode. Typing edits the value in place;escreturns to navigate. Only fields the user actually changes get written to the generated file, and optional defaults stay implicit, so the result is leaner than the placeholder flow.enteron a boolean field toggles between[x] trueand[ ] falsedirectly, without a separate edit mode.xon an optional field marks it "use default" again, removing any in-progress value and leaving the source's default to apply.Complex types (lists, maps, objects) accept raw HCL and are validated before the file is written, so a typo surfaces inline rather than producing a broken
terragrunt.hclorterragrunt.values.hclfile.ctrl+dfinishes the form. Required fields the user never set still write as# TODO: fill in valueso the rest of the file is usable.S(capital) keeps the previous placeholder-only flow, generating the same TODO-laden file as before for users who prefer to populate values by editing the generated file.stack-dependencies: parser tolerates HCL expressions throughoutterragrunt.stack.hclThe
stack-dependenciesexperiment now defers evaluation ofsource,path,values, andinclude.pathuntil each unit or stack block is parsed on its own. As a result,autoincluderesolution during stack generation andrun --alldiscovery no longer fall over when other parts of a stack file use Terragrunt functions,local.*, orvalues.*. A few adjacent behaviors are tightened up at the same time.Autoinclude resolves even when sibling units use expressions.
Before 1.0.6, if any unit in a stack file used a function call or a
local.*/values.*reference insource,path, orvalues, generating anautoincludeon a different unit in the same file could fail. The parser now leaves those expressions alone until they're needed, so an unrelated unit can carry anautoincludeblock without being blocked by its neighbors:includeblocks interragrunt.stack.hclaccept computed paths.The
pathattribute on anincludeblock can be an HCL expression, not just a string literal. Anautoincludeblock in the included file is resolved normally after the include merges in:What's Changed
renderWriteToby @yhakbar in #6144setup-gofrom Windows signing by @yhakbar in #6158catalogscaffold by @yhakbar in #6162vfstogetterby @yhakbar in #6070--out-dirusage by @FernandoArteaga-telus in #6176mark-many-as-readfor discovery by @yhakbar in #6174go-commonsdependency by @yhakbar in #6180download_dircopy infinite recursion by @yhakbar in #6169New Contributors
Full Changelog: gruntwork-io/terragrunt@v1.0.5...v1.0.6
v1.0.5Compare Source
✨ New Features
Full
.terraform.lock.hclfiles from the provider cache serverWhen the provider cache server is used against the OpenTofu provider registry, Terragrunt now writes
.terraform.lock.hclfiles containingh1:hashes for every platform the registry supports. A singleterragrunt initproduces a lock file that works on every platform, removing the need to runtofu providers lock -platform=...separately for each target architecture.The hashes come from the registry's per-platform download response. When the registry does not supply them (for example, a third-party registry that has not adopted the field), Terragrunt falls back to its previous behavior of writing an
h1:hash for the current platform pluszh:hashes for every platform listed in the shasums document.🏎️ Performance Improvements
stack outputfetches unit outputs in parallelterragrunt stack outputnow fetches outputs from multiple units at the same time, which is noticeably faster on larger stacks. Use the existing--parallelismflag (orTG_PARALLELISM) to lower concurrency if you need to.💡 Tips Added
Stack-target hint when
--filteris missing| type=stackrunandstack generatenow emit a tip when a--filterpath resolves to a directory containingterragrunt.stack.hclbut the filter is not restricted to stacks. Without| type=stack,stack generateignores the filter andrundoes not generate that stack.The tip prints the offending filter, the suggested rewrite, and a link to the filter docs. Suppress it with
--no-tip stack-target-missing-type-stackor--no-tips.🐛 Bug Fixes
Auth provider command returning
nullno longer crashes TerragruntIf the command configured via
--auth-provider-cmdwrote the JSON valuenullto stdout, Terragrunt crashed with a nil pointer dereference before it could obtain credentials.A
nullresponse is now treated as an empty response: no environment variables and no credentials are applied, and the run continues.Auto-init now re-runs after a source change when modules are already cached
terragrunt plan/applycould fail withError: Required plugins are not installedafter a source-version change in any unit with amodule ""block. The.terragrunt-init-requiredmarker written on source change was being ignored becausemodulesNeedInitshort-circuited as soon as.terraform/modules/existed.The marker check now lives at the top of
needsInitRunCfgand is honored regardless of cached.terraform/modules/contents.Thanks to @arnaud-dezandee for contributing this fix!
--download-diris now respected throughdependencyblocks andread_terragrunt_configA custom download directory set via
--download-dir(orTG_DOWNLOAD_DIR) was honored for the unit being run, but lost as soon as parsing crossed into another config.dependencyblocks andread_terragrunt_config()would fall back to the dependency's local.terragrunt-cachenext to itsterragrunt.hcl, ignoring the user-set path.When the parsing context switches to a new config path, the download directory is now updated only if it still points at the previous module's default location. A user-supplied path never matches any module's default and is carried through every dependency hop unchanged.
Thanks to @maonat for contributing this fix!
remote_state— apply tags during DynamoDB lock table creationTerragrunt previously applied
dynamodb_table_tagsto DynamoDB lock tables after table creation rather than during the initialCreateTableAPI request.This caused failures in environments enforcing required AWS resource tags through SCPs or tag policies, where tags must be present at resource creation time.
Terragrunt now includes
dynamodb_table_tagsin the initial DynamoDB table creation request during remote state bootstrap.Thanks to @Rahul-Kumar-prog for contributing this fix!
Engine archive extraction rejects path-traversal entries
When Terragrunt extracted an engine archive while the
engineexperiment was active, entries whose target path resolved outside the extraction directory were not rejected correctly. Such an entry could overwrite files anywhere the Terragrunt process could write.These entries are now rejected early with a descriptive error before any bytes are written. Engine archives produced by Gruntwork were never affected; the gap only mattered for a tampered or untrusted archive.
Thanks to @jackiesre721 for reporting this!
--filtercombined with a negation no longer parses excluded unitsWhen a positive path filter was combined with a negated one, Terragrunt classified any unit that matched neither expression as requiring defensive parsing before exclusion instead of being excluded early.
e.g.
Any positive filepath filter now consistently results in units that cannot be discovered during Terragrunt discovery being excluded from parsing for evaluating candidacy of inclusion. When a sufficiently complex filter is present, like the following:
macOS and Windows binaries report the correct release version
The v1.0.4 macOS and Windows release binaries reported
terragrunt version mainand parsed as0.0.0, breaking anyterragrunt_version_constraintconfigured against them.sign-macos.ymlandsign-windows.ymlincluded build jobs for standaloneworkflow_dispatchruns. During the release workflow, those jobs still saw the originalworkflow_dispatchevent fromrelease.yml, so the old condition evaluated to true. The redundant build usedBUILD_VERSION=${{ github.ref_name }}and replaced the correctly versioned artifact uploaded bybuild.yml.The signing workflows now skip their internal build job when invoked via
workflow_calland only build when dispatched directly, so release binaries keep the version stamped bybuild.yml.Fixed
403 Forbiddenon nested private modules when using the provider cache serverWith
TG_PROVIDER_CACHEenabled, OpenTofu/Terraform sent nested module-registry lookups to the upstream registry with the cache server's API key as the bearer token, instead of the credentials configured for that host. Private registries rejected those requests:Terragrunt sets
TF_TOKEN_<host>to the cache server's API key so the cache can front provider downloads. Module-registry requests bypassed the cache and went straight to the upstream, so the registry saw the cache key instead of the user's token.The cache server now also fronts the
modules.v1endpoint for each configured registry. It drops the inbound cache-server bearer, looks up the user's credentials for the upstream host from the loaded CLI config (TF_TOKEN_<host>,~/.terraform.d/credentials.tfrc.json, etc.), and forwards the request with that token.Run report file generation no longer stalls or deadlocks with many runs
Generating a run report via
--report-filecould stall or deadlock when a queue contained many runs and some were still recording their final status as the report was written.Reports now serialize each run independently, so writing a report no longer blocks status updates from runs that are still finishing.
Thanks to @jackiesre721 for contributing this fix!
Declining a
run --allor--graphconfirmation no longer skips cleanupWhen
terragrunt run --all destroy(or--all state,--all apply, or the equivalent--graphvariants) prompted for confirmation and the user answered "no", Terragrunt terminated the process directly, skipping cleanup the run had registered.Cleanup now runs before Terragrunt exits.
s3::andgcs::stack sources now downloadStack file
sourceURLs starting withs3::https://orgcs::https://previously failed with a credentials error even when valid credentials were available. They now download. Existing stack files need no change.Plain
https://www.googleapis.com/storage/...URLs are now intended to download anonymously without GCP credentials, but Terragrunt continues to use GCS credentials to download them for backward compatibility, emitting a deprecation warning the first time it does so. To opt into the new behavior, enable thelegacy-gcs-public-prefixstrict control. To pull from a private GCS bucket explicitly, prefix the URL withgcs::yourself.Fixed nested key order in
terragrunt stack outputWhen a unit lived inside more than one nested stack,
terragrunt stack outputrendered its key with the stack names reversed, so a unit insideroot_stack_3 > stack_v3 > stack_v2appeared understack_v2.stack_v3.root_stack_3instead ofroot_stack_3.stack_v3.stack_v2. Deeply nested units also leaked to the top level of the output.The output now joins stack names from outermost to innermost, matching the declared hierarchy in both the HCL and JSON formats.
Thanks to @anuragrao04 for contributing this fix!
Fixed
failed to create directory ...: file existsfrom the provider cache serverIf a previous run had cached a provider by symlinking
~/.terraform.d/plugins/<provider>into Terragrunt's own provider cache, and that user plugin directory was later moved or deleted, the symlink was left dangling. The next run failed withfailed to create directory ...: file existsand refused to cache the provider.Terragrunt now removes a dangling symlink at the cache path on the next run and proceeds to download the provider. A non-symlink at that path is left in place and surfaced as an error.
🧪 Experiments Added
azure-backend— Native Azure Storage (azurerm) remote-state supportThe
azure-backendexperiment has been added as the gate for native Terragrunt support of the Azure Storage (azurerm) remote-state backend. Once it stabilizes, Terragrunt will bootstrap, delete, and migrate Azure storage accounts and blob containers the same way it already does for S3 and GCS, and read state directly from Azure blobs for--dependency-fetch-output-from-state.In this release the flag is reserved only. Enabling it has no behavioral effect, and
remote_state { backend = "azurerm" }continues to pass through to the OpenTofu and Terraform nativeazurermbackend.Track progress and share feedback in #4307. For setup steps, see the experiment documentation.
Thanks to @omattsson for driving this experiment forward!
🧪 Experiments Updated
CAS keeps a central Git store for incremental fetches
CAS now keeps one bare Git repository per remote URL inside its store, under
~/.cache/terragrunt/cas/store/git/on Linux by default. See Storage for where this lives on macOS and Windows. On a cache miss, Terragrunt fetches just the requested ref into that repository instead of running a fresh shallow clone into a temporary directory. Repeated misses against the same remote reuse the existing pack files, so fetching a second ref from the same repository transfers only the new objects.Concurrent Terragrunt runs against the same remote URL share one fetch instead of cloning in parallel; later runs reuse what the first one transferred. If the shared fetch hangs or fails, Terragrunt logs a warning and falls back to a temporary clone so cloning still succeeds.
You can reclaim space at any time by deleting the
git/subdirectory:rm -rf ~/.cache/terragrunt/cas/store/gitcas— Commit SHAs accepted inref=Source URLs of the form
git::<url>?ref=<commit-sha>now resolve through CAS. Previously these clones failed because Terragrunt asked the remote to look up the SHA as a symbolic reference, which Git servers don't support.Both full SHAs (SHA-1 and SHA-256) and abbreviated SHAs are accepted. Abbreviated SHAs must disambiguate inside the repository, the same rule Git itself applies.
The first cold clone of a repository pinned to a commit SHA fetches the full history of every branch. Shallow fetches require a ref name, and fetching a commit SHA at limited depth depends on a server option (
uploadpack.allowAnySHA1InWant) that is not universally enabled, so CAS fetches all branches at full depth and resolves the SHA locally. Subsequent clones reuse the cached repository and never touch the network for the same commit. Branch and tag refs continue to use the existing shallow path.cas—mutableattribute onterraform,unit, andstackblocksA new
mutableattribute opts a block out of CAS hardlinking when its source is fetched through CAS. Withmutable = true, files materialized into.terragrunt-cache(forterraform) or.terragrunt-stack(forunitandstack) are copied from the CAS store and the working tree is editable.The default is
false. Files are materialized read-only so an accidental edit cannot reach back into the shared CAS store.The flag is orthogonal to
update_source_with_casand has no effect when content is fetched through the standard download path, which already produces an independent copy.cas—update_source_with_casnow idempotent acrossunitandstackblocksA
terragrunt.stack.hclwith two blocks pointing at the same template directory used to failstack generatewhen each block hadupdate_source_with_cas = true. The first block's pass rewrote the shared template's source to acas::sha256:...reference, then the second block's pass re-read the rewritten file and treated the reference as a relative path.CAS now skips re-processing a source once it already carries the
cas::prefix, so multipleunitorstackblocks can share a template and resolve to the same synthetic tree.cas— symlinks in the source repositorySource repositories fetched through CAS used to materialize committed symlinks as regular files whose contents were the link target path. The destination tree no longer matched the upstream layout, and any tooling that followed the link saw plain text instead.
CAS now writes a real symbolic link at the destination. Symlink targets that resolve outside the destination tree are rejected so a hostile or stale source cannot escape the working directory.
catalog-redesign— component tagsThe
catalog-redesignexperiment now reads atagsfield from the component'sREADME.mdfront-matter. Tags appear as colored pills next to the component in the list view and in the detail view above the rendered README.Either inline-array or dash-list YAML form is accepted. Tags render in gray by default. When a tag matches a known component-type name (
module,template,unit, orstack, case-insensitive), the pill takes on that type's color.A tag matching a component-type name also promotes the component into that type's tab. A
templatewhose tags includemoduleappears under bothTemplates(by its native kind) andModules(by tag), without changing how it scaffolds.To learn more, see Component tags.
What's Changed
mutableattribute for clones to force copy instead of hard links by @yhakbar in #6011--auth-provider-cmdagainstnullby @yhakbar in #6137update_source_with_casidempotent within a singleterragrunt generatecall by @yhakbar in #6142dependencyBlockToCtyValueby @yhakbar in #6067terragrunt stack outputby @yhakbar in #6113run --allearly exit by @yhakbar in #6127v1.0.5by @yhakbar in #6103Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.