Completed Experiments
These experiments have been completed and their features are now available by default. The experiment flags are no longer needed.
auto-provider-cache-dir
Enable native OpenTofu provider caching by setting TF_PLUGIN_CACHE_DIR instead of using Terragrunt’s internal provider cache server.
auto-provider-cache-dir - What it does
This experiment automatically configures OpenTofu to use its built-in provider caching mechanism by setting the TF_PLUGIN_CACHE_DIR environment variable. This approach leverages OpenTofu’s native provider caching capabilities, which are more robust for concurrent operations in OpenTofu 1.10+.
This experiment flag is no longer needed, as the auto-provider-cache-dir feature is now enabled by default when using OpenTofu >= 1.10.
Requirements:
- OpenTofu version >= 1.10 is required
- Only works when using OpenTofu (not Terraform)
Disabling the feature:
You can disable the auto-provider-cache-dir feature using the --no-auto-provider-cache-dir flag:
terragrunt run --all apply --no-auto-provider-cache-dirauto-provider-cache-dir - How to provide feedback
Now that the auto-provider-cache-dir experiment is complete, please provide feedback in the form of standard GitHub issues.
auto-provider-cache-dir - Criteria for stabilization
To transition the auto-provider-cache-dir feature to stable, the following have been completed:
- Comprehensive testing to confirm the safety of concurrent runs using the same provider cache directory.
- Performance comparison with the existing provider cache server approach.
- Documentation and examples of best practices for usage.
- Community feedback on real-world usage and any edge cases discovered.
azure-backend
Support for the Azure Storage (azurerm) remote state backend.
azure-backend - What it does
This experiment flag is no longer needed, as the Azure Storage (azurerm)
backend is now managed by default.
Terragrunt manages lifecycle operations for the Azure Storage (azurerm) remote
state backend, matching what it already does for S3 buckets and GCS buckets:
- Bootstrap: creates the resource group (when allowed), storage account, and blob container backing the state, and converges blob versioning and optional soft delete on both new and pre-existing accounts.
- Delete: removes state blobs or entire containers, with confirmation prompts.
- Migrate: moves state blobs within the same storage account (cross-account migration is refused with guidance to migrate manually).
Authentication supports six methods, resolved in the following order:
- SAS token
- Storage account access key
- Service principal
- Managed identity (MSI)
- OIDC / workload identity
- Azure AD (
use_azuread_author the default credential chain, which honorsaz login)
ARM_* and AZURE_* environment variable fallbacks are applied. Set environment
(or ARM_ENVIRONMENT) to usgovernment for Azure Government.
Terragrunt reads dependency outputs directly from the Azure state blob without
initializing the dependency or running tofu output/terraform output.
State protected with customer_provided_key, and configurations that rely on
native-only authentication, metadata_host, or timeout_seconds, continue through
the native backend path. This preserves the backend’s identity, endpoint, and
decryption behavior.
See the Azure Storage backend documentation for configuration keys and known limitations.
azure-backend - How to provide feedback
Now that the azure-backend experiment is complete, please provide feedback in the form of standard GitHub issues.
azure-backend - Criteria for stabilization
To transition the azure-backend feature to a stable release, the following were addressed:
-
internal/azurehelperpackage wrapping the Azure SDK with a builder pattern matchingawshelper/gcphelper. - Bootstrap of storage accounts and blob containers, including versioning and soft delete convergence.
- Optional RBAC role assignment for
use_azuread_authduring bootstrap, viaassign_blob_data_role. - Delete operations for state blobs and containers, with confirmation prompts, and state migration within a storage account.
- Direct state file reads from Azure blobs for
--dependency-fetch-output-from-state. - Documentation covering authentication methods, configuration keys, and troubleshooting.
- End-to-end live coverage against a real subscription for container bootstrap, blob versioning convergence, backend delete, and direct dependency state reads, behind the
azurebuild tag. - End-to-end live coverage for resource group and storage account creation, soft-delete retention convergence, and state migration.
- Community feedback on real-world usage.
block-iteration
The expansion block, which iterates a dependency, unit, or stack block over a count or for_each, and the enabled attribute on unit and stack blocks.
block-iteration - What it does
This experiment flag is no longer needed, as Terragrunt now accepts an expansion block on dependency, unit, and stack blocks by default. It declares either a count or a for_each, and Terragrunt reads the block it sits in once per element:
unit "aurora" { expansion { for_each = toset(["web", "api"]) }
source = "../units/app" path = "aurora/${each.key}"
values = { role = each.key }}That generates two units, at .terragrunt-stack/aurora/web and .terragrunt-stack/aurora/api. You address each element by its key. An expanded dependency is read as dependency.aurora["web"].outputs.id, and terragrunt stack output 'aurora["web"].role' reaches one element of an expanded unit.
unit and stack blocks also accept an enabled attribute. Setting it to false drops the component from stack generation and leaves every other address alone.
See the expansion block reference for the full set of rules, the addressing scheme, and what changing an expansion does to existing state.
block-iteration - How to provide feedback
Now that the block-iteration experiment is complete, please provide feedback in the form of standard GitHub issues.
block-iteration - Criteria for stabilization
To transition the block-iteration feature to a stable release, the following were addressed. Unchecked items remain open.
- Adding an expansion to a
dependency,unit, orstackblock, shrinking it, removing it, and settingenabled = falsebehave as theexpansionreference documents for each block type. - Growing an expansion adds only the new elements. Adding a
for_eachkey, or appending to the list acountreads, leaves every existingdependencyaddress, generatedunitdirectory, and generatedstacktree as it was, and an applied unit keeps its state. - Keyed addressing works in
inputsand instack output.stack outputreads an address as an HCL traversal, so a key containing a dot stays one segment, andshard[0]reaches the same element asshard["0"]. - A key containing a quote resolves in
inputswhen written with HCL’s escape, as independency.aurora["a\"b"], andstack outputreads the same escaped address. -
renderprints an expanded block as written, followed by its elements as resolved, commented-out blocks. A JSON configuration renders the same way, and--format jsonemits the block as written. - Git-based
--filterexpressions select the components an expansion orphaned when it shrank. The reference documents thatrun --all destroy --filteris rejected, that orphans are found only when the stack file or a file it reads appears in the diff, and that a selecting filter drops them. - Positive feedback from users replacing repeated blocks with iteration.
bounded-discovery
Enclose graph traversal for a --filter expression within a directory using an inline (dir) operand, instead of the Git repository root.
bounded-discovery - What it does
Graph-traversing filter expressions reach beyond the working directory. Dependent discovery (...{unit}) requires searching from the working directory of the given component up to the Git repository root (if the unit is within a Git repository). Dependency discovery ({unit}...) requires recursive parsing of dependencies to find the terminal dependency. Either way, Terragrunt has to read and parse every configuration it touches along the way for accuracy. In monorepos where sibling environments cannot be parsed independently of each other, that traversal fails or wastes work reaching into them.
This experiment flag is no longer needed, as Terragrunt now accepts an inline (dir) boundary operand by default. It sits in the same operand slot as a traversal depth (e.g. 1...{vpc}):
cd environments/stagingterragrunt find --filter '(.)...{vpc}'# dependents of vpc, enclosed within the current environment(.)...{vpc}
# dependencies of vpc, enclosed within the current environment{vpc}...(.)
# independent bounds per direction(../shared)...{vpc}...(.)Any configuration that is discovered outside the boundary, whether a dependent or a dependency, is not read, parsed, or returned. The boundary must be an existing directory. Relative paths are resolved against the working directory, and a dependent-direction boundary must contain the working directory.
A boundary bounds discovery traversal rather than filtering results, so an in-boundary unit reachable only by passing through an out-of-boundary unit is intentionally excluded. Given a —> b —> c, if b is outside the boundary, traversal from a cannot reach c, and vice-versa.
Because the boundary operand claims ( and ), those characters are not read as part of a unit name or path. Wrap a name or path that contains them in braces (e.g. {./weird(name)}) to keep it literal.
The --discovery-boundary flag (env: TG_DISCOVERY_BOUNDARY) is also available by default. It applies one boundary to every --filter expression on the command, in both directions:
cd environments/stagingterragrunt find --filter '...{vpc}' --discovery-boundary .An inline (dir) operand overrides the flag for the expression that carries it. See the --discovery-boundary reference for how the boundary is resolved.
bounded-discovery - How to provide feedback
Now that the bounded-discovery experiment is complete, please provide feedback in the form of standard GitHub issues.
bounded-discovery - Criteria for stabilization
Criteria for moving bounded-discovery to a stable release:
- A single directory boundary covers per-environment directories, including units that include a shared parent configuration above the boundary and units that depend on components outside it.
- A boundary is a directory. Terragrunt does not expand a glob in the operand or the flag.
- Path-restricting filter intersections (e.g.
...{unit} | ./**) do not narrow the boundary. Set one with a(dir)operand or--discovery-boundary. - Decide whether and how the boundary should apply to Git-based filter expressions (e.g.
[main...HEAD]). - Positive feedback from users relying on the operand and the flag in repositories with isolated environments.
cas
Support for Terragrunt Content Addressable Storage (CAS).
cas - What it does
Allow Terragrunt to store and retrieve Git repositories from a Content Addressable Storage (CAS) system.
The CAS is used to speed up catalog cloning, OpenTofu/Terraform source cloning, and stack generation by avoiding redundant downloads of Git repositories. When used with stacks, it also allows catalog authors to use relative paths in source attributes via the update_source_with_cas attribute.
This experiment flag is no longer needed, as the CAS is now enabled by default. Disable it with the --no-cas flag.
cas - How to provide feedback
Now that the cas experiment is complete, please provide feedback in the form of standard GitHub issues.
cas - Criteria for stabilization
To transition the cas feature to a stable release, the following were completed:
- Add support for storing and retrieving catalog repositories from the CAS.
- Add support for storing and retrieving OpenTofu/Terraform modules from the CAS.
- Add support for storing and retrieving Unit/Stack configurations from the CAS.
catalog-format
Non-interactive output formats for the catalog command.
catalog-format - What it does
This experiment flag is no longer needed, as the catalog command now accepts a --format flag by default. It writes what the catalog discovers to standard output in place of the terminal user interface: jsonl emits one JSON object per catalog entry, and md emits a Markdown document.
terragrunt catalog --format=jsonl | jq -c '{kind, title, component_source}'terragrunt catalog --format=md > catalog.mdBoth formats render progressively, as entries are discovered, so a consumer that only needs the first few can stop reading before discovery finishes. Entries appear in discovery order, which is not stable between runs.
The jsonl records follow a published JSON schema, so consumers can validate what they read.
Without --format, the command opens the terminal user interface when standard input and standard output are both terminals, and writes jsonl otherwise. Scaffolding a module and copying a unit or stack stay in the terminal user interface.
See Non-interactive catalog for each format and the structure of an entry.
catalog-format - How to provide feedback
Now that the catalog-format experiment is complete, please provide feedback in the form of standard GitHub issues.
catalog-format - Criteria for stabilization
Criteria for moving catalog-format to a stable release:
- A
--formatflag oncatalogacceptingjsonlandmd. - Progressive rendering of both formats, so output is usable before discovery completes.
- A published JSON schema for
jsonlrecords. - A default format derived from what the output stream supports, so piping
catalogdoes not require passing--format. - Documentation covering each format and the stability guarantees of the record structure.
- Integration test coverage for each format.
- Community feedback on real-world usage.
catalog-redesign
Redesigned terragrunt catalog TUI with whole-repository discovery, tabbed browsing, and an interactive scaffolding form.
catalog-redesign - What it does
Replaces the existing terragrunt catalog experience with a redesigned TUI that removes the need for manual configuration. The new catalog discovers modules and templates across the whole repository, lets you browse them in tabbed views, and scaffolds a selected component through an interactive form.
This experiment flag is no longer needed, as the redesigned TUI is now the default terragrunt catalog experience.
Discovery walks the entire repository instead of only a modules/ directory, so modules and templates can live anywhere. Boilerplate templates are discovered as a distinct component kind alongside OpenTofu/Terraform modules and labeled as templates in the UI. Catalog authors can commit a .terragrunt-catalog-ignore file at the repo root to exclude directories such as examples/ or test/ from discovery. See Excluding paths from discovery for the supported pattern syntax.
The list view is split into All, Modules, and Templates tabs with All selected by default. Press tab and shift+tab to cycle between them; each tab keeps its own cursor and search filter.
Each list entry shows a metadata row with a component-type pill (module, template), the source URL it was discovered from, and a version pill when a release tag is available, so it is clear which repository or path a component came from.
Pressing s on a selected component opens an in-TUI form that prompts for every variable the component exposes (.tf variable blocks for modules and templates, values.* references for units and stacks). The form is modal: j/k (or arrows) navigate between fields, enter enters edit mode on a text field or toggles a boolean checkbox in place, esc returns from edit to navigate, x marks an optional field “use default” so it’s left out of the generated file, ctrl+d finishes, and esc from navigate cancels back to the catalog. Only fields the user explicitly sets are written to the generated terragrunt.hcl or terragrunt.values.hcl; required fields the user never set still produce # TODO: fill in value placeholders. Pressing S (capital) keeps the original placeholder-only flow for users who want to populate values by editing the generated file.
catalog-redesign - How to provide feedback
Now that the catalog-redesign experiment is complete, please provide feedback in the form of standard GitHub issues.
catalog-redesign - Criteria for stabilization
To transition the catalog-redesign feature to a stable release, the following were completed:
- Multiple catalog browse views (
All,Modules,Templatestabs) are implemented and functional. - Catalog launches without requiring manual configuration (no pre-existing
catalogblock needed). - Discovery walks the entire repository, surfacing modules and boilerplate templates wherever they live.
- Authors can exclude paths from discovery with a
.terragrunt-catalog-ignorefile. - Component source is visible in the UI for each catalog entry.
- Component type (module, unit, stack, template) is clearly indicated in the UI.
- An interactive scaffold form prompts for each variable a component exposes and generates
terragrunt.hcl/terragrunt.values.hcl. - Integration tests cover the core catalog workflows.
- Positive feedback from users using the redesigned catalog in production environments.
cli-redesign
Support for the new Terragrunt CLI design.
cli-redesign - What it does
Enabled features from the CLI Redesign RFC.
This experiment flag is no longer needed, as the CLI Redesign is now the default.
cli-redesign - How to provide feedback
Now that the CLI Redesign experiment is complete, please provide feedback in the form of standard GitHub issues.
cli-redesign - Criteria for stabilization
To transition cli-redesign features to a stable the following have been completed:
- Add support for
runcommand.- Add support for basic usage of the
runcommand (e.g.,terragrunt run plan,terragrunt run -- plan -no-color). - Add support for the
--allflag. - Add support for the
--graphflag.
- Add support for basic usage of the
- Add support for
execcommand. - Rename legacy
--terragrunt-prefixed flags so that they no longer need the prefix. - Add the
hclcommand, replacing commands likehclfmt,hclvalidateandvalidate-inputs. - Add OpenTofu commands as explicit shortcuts in the CLI instead of forwarding all unknown commands to OpenTofu/Terraform.
- Add support for the
backendcommand. - Add support for the
rendercommand. - Add support for the
infocommand. - Add support for the
dagcommand. - Add support for the
findcommand.- Add support for
findwithout flags. - Add support for
findwith colorful output. - Add support for
findwith--format=jsonflag. - Add support for
findwith stdout redirection detection. - Add support for
findwith--hiddenflag. - Add support for
findwith--sort=alphaflag. - Add support for
findwith--sort=dagflag. - Add support for
findwith theexcludeblock used to exclude units from the search. - Add integration with
symlinksexperiment to support finding units/stacks via symlinks. - Add handling of broken configurations or configurations requiring authentication.
- Add integration test for
findwith--sort=dagflag on all the fixtures in thetest/fixturesdirectory.
- Add support for
- Add support for the
listcommand.- Add support for
listwithout flags. - Add support for
listwith colorful output. - Add support for
listwith--format=treeflag. - Add support for
listwith--format=longflag. - Add support for
listwith stdout redirection detection. - Add support for
listwith--hiddenflag. - Add support for
listwith--sort=alphaflag. - Add support for
listwith--sort=dagflag. - Add support for
listwith--group-by=fsflag. - Add support for
listwith--group-by=dagflag. - Add support for
listwith theexcludeblock used to exclude units from the search. - Add integration with
symlinksexperiment to support listing units/stacks via symlinks. - Add handling of broken configurations or configurations requiring authentication.
- Add integration test for
listwith--sort=dagflag on all the fixtures in thetest/fixturesdirectory.
- Add support for
dag-queue-display
Display the run queue as a DAG tree showing dependency hierarchy.
dag-queue-display - What it does
The run queue is rendered as a tree that visualizes dependency relationships between units, instead of the flat list Terragrunt displayed previously. Independent units appear as siblings at the root, while dependent units are nested under their dependencies. This experiment flag is no longer needed, as the tree display is now the default.
The tree also changes its header message based on execution direction:
- Apply/Plan: “starting with dependencies and then their dependents”
- Destroy: “starting with dependents and then their dependencies”
terragrunt run --all -- planExample output:
The following units will be run, starting with dependencies and then their dependents:.├── monitoring╰── vpc ╰── database ╰── backend-app ╰── frontend-appdag-queue-display - How to provide feedback
Now that the dag-queue-display experiment is complete, please provide feedback in the form of standard GitHub issues.
dag-queue-display - Criteria for stabilization
To transition the dag-queue-display feature to a stable release, the following were completed:
- Community feedback on the tree visualization format
- Confirm readability with large dependency graphs
- Confirm compatibility with CI/CD log viewers (color and Unicode handling)
dependency-fetch-output-from-state
Reading dependency outputs directly from state files.
dependency-fetch-output-from-state - What it does
This experiment flag is no longer needed, as Terragrunt now reads dependency outputs directly from the remote state file by default. That skips initializing the dependency unit, which previously required running tofu output or terraform output against it.
To opt-out of this behavior, pass --no-dependency-fetch-output-from-state (env: TG_NO_DEPENDENCY_FETCH_OUTPUT_FROM_STATE).
Current Backend Support:
- S3 and GCS backends: Direct state reads are supported
- Azure Storage (
azurerm) backend: Direct state reads are supported - Other backends: Falls back to the normal method (using
tofu/terraform output)
Azure state protected with customer_provided_key, and Azure configurations that rely on native-only authentication, metadata_host, or timeout_seconds, also use the normal method.
GCS configurations that rely on backend-only credential environment variables, inline credentials or relative credential-file paths, custom storage endpoints, custom universe domains, or competing credential sources with different precedence also use the normal method. This preserves the native backend’s authentication and endpoint behavior.
When a GCS backend impersonates a service account, Terragrunt still reads its state directly. The account comes from impersonate_service_account, then GOOGLE_BACKEND_IMPERSONATE_SERVICE_ACCOUNT, then GOOGLE_IMPERSONATE_SERVICE_ACCOUNT. An empty impersonate_service_account reads the state directly without impersonation. When it is empty and one of those variables is set, Terragrunt uses the normal method. OpenTofu and Terraform disagree on that input, so the binary decides. Delegates come from impersonate_service_account_delegates only. Like the native backend, Terragrunt ignores GOOGLE_BACKEND_IMPERSONATE_SERVICE_ACCOUNT_DELEGATES and GOOGLE_IMPERSONATE_SERVICE_ACCOUNT_DELEGATES.
The credentials backend setting is a local path to a Google Cloud credentials file in JSON format. GOOGLE_APPLICATION_CREDENTIALS points to the same kind of file. Neither is the same thing as access_token, which is a temporary OAuth 2.0 access token used as-is rather than a file.
Terragrunt reads credentials files of type service_account, authorized_user, and external_account (Workload Identity Federation) directly. An external_account file is read directly only when its credential_source is a url or a file with an absolute path. Any other source uses the normal method, because a direct read would resolve it with Terragrunt’s own environment and working directory rather than the unit’s:
executablewould run the command with Terragrunt’s environment.- AWS (an
environment_idsuch asaws1) would use Terragrunt’s AWS credentials. filewith a relative path would resolve against Terragrunt’s working directory.
Failure handling:
Reading state directly is an optimization. Outside render and render-json, Terragrunt retries a failed direct read with tofu output or terraform output, unless the state object is missing. If native output retrieval succeeds, only the speedup is lost. For missing outputs, Terragrunt uses configured mock_outputs only when they are allowed for the original command. skip_outputs skips output retrieval and returns eligible configured mocks. The render commands retain their tolerant behavior and can use configured mocks regardless of the command allow-list.
OpenTofu state encryption:
The direct reader cannot decrypt state protected by OpenTofu’s client-side state encryption because it does not evaluate OpenTofu’s encryption configuration or key providers from the remote_state.encryption map. Outside render and render-json, Terragrunt recognizes the encrypted envelope and retries with tofu output or terraform output, allowing the configured binary to decrypt the state when it supports that encryption. If native output retrieval succeeds, only the speedup is lost. For missing outputs, Terragrunt uses configured mock_outputs only when they are allowed for the original command. skip_outputs skips output retrieval and returns eligible configured mocks. The render commands retain their tolerant behavior and can use configured mocks regardless of the command allow-list. Disable the experiment when a render command must resolve real outputs from encrypted state.
Disabling the feature:
Pass --no-dependency-fetch-output-from-state to read outputs through tofu output or terraform output instead:
terragrunt run --all --no-dependency-fetch-output-from-state -- plandependency-fetch-output-from-state - How to provide feedback
Now that the dependency-fetch-output-from-state experiment is complete, please provide feedback in the form of standard GitHub issues.
dependency-fetch-output-from-state - Criteria for stabilization
To transition the dependency-fetch-output-from-state feature to a stable release, the following were addressed:
- Add support for additional backends (GCS and Azure Storage)
- Live direct-state-read integration coverage for S3, GCS, and Azure Storage
- Comprehensive integration testing across backend authentication, encryption, workspace, and error scenarios
- Performance benchmarking to validate speed improvements
- Error handling and edge case testing
- Documentation of supported backends and limitations
- Handle OpenTofu state encryption gracefully (fallback or explicit error message)
- Community feedback on real-world usage
filter-flag
Support for sophisticated unit and stack filtering using the --filter flag.
filter-flag - What it does
The --filter flag provides a sophisticated querying syntax for targeting units and stacks in Terragrunt commands. This unified approach replaces the need for multiple queue control flags and offers powerful filtering capabilities.
This experiment flag is no longer needed, as the --filter flag is now available by default in the find, list, and run commands.
Supported Filtering Types:
- Name-based filtering: Target units/stacks by their directory name (exact match or glob patterns)
- Path-based filtering: Target units/stacks by their file system path (relative, absolute, or glob patterns)
- Attribute-based filtering: Target units by configuration attributes:
type=unitortype=stack- Filter by component typeexternal=trueorexternal=false- Filter by whether the unit/stack is an external dependency (outside the current working directory)name=pattern- Filter by name using glob patterns
- Negation filters: Exclude units using the
!prefix - Filter intersection: Combine filters using the
|operator for results pruning - Multiple filters: Specify multiple
--filterflags to union results - Git-based filtering: Target units/stacks changed between Git references using the
[ref...ref]syntax - Dependency/dependent traversal: Expand results to dependencies and dependents using the
...syntax
The legacy queue control flags (--queue-exclude-dir, --queue-excludes-file, --queue-exclude-external, --queue-include-dir, --queue-include-external, --queue-include-units-including, --queue-strict-include) remain supported alongside --filter.
filter-flag - How to provide feedback
Now that the filter-flag experiment is complete, please provide feedback in the form of standard GitHub issues.
filter-flag - Criteria for stabilization
To transition the filter-flag feature to a stable release, the following were completed:
- Add support for name-based filtering
- Add support for path-based filtering (relative, absolute, glob)
- Add support for attribute-based filtering (type, external, name)
- Add support for negation filters (!)
- Add support for filter intersection (|)
- Add support for multiple filters (union/OR semantics)
- Integrate with the
findcommand - Integrate with the
listcommand - Integrate with the
runcommand - Add support for git-based filtering ([ref…ref] syntax)
- Add support for dependency/dependent traversal (… syntax)
- Add support for
--filters-fileflag - Add support for
--filter-allow-destroyflag - Add support for
--filter-affectedshorthand - Comprehensive integration testing across all commands
mark-many-as-read
Mark many files as read in one step, so reading-based filter expressions cascade changes from shared files to the units that consume them.
mark-many-as-read - What it does
This experiment flag is no longer needed; the two behaviors it gated are now enabled by default:
- When a unit’s
terraformblock points at a local module source, Terragrunt walks that directory and records every*.tf,*.tf.json,*.hcl,*.tofu, and*.tofu.jsonfile as read for the unit. Non-source files such asREADME.mdare skipped. Remote sources (Git, registry, S3, etc.) are not walked. - The
mark_glob_as_read(pattern)HCL function. It expands a glob usinggobwas/globsyntax and marks every matching file as read, returning the list of absolute paths that matched. See the HCL reference for pattern syntax and examples.
Both behaviors feed the same reading tracker that powers the reading= filter attribute, so a change to a local module file or a globbed configuration file is picked up by --filter 'reading=<path>' and matches every unit that reads it.
mark-many-as-read - How to provide feedback
Now that the mark-many-as-read experiment is complete, please provide feedback in the form of standard GitHub issues.
mark-many-as-read - Criteria for stabilization
To transition the mark-many-as-read feature to a stable release, the following were completed:
- Confirm local module walking handles nested modules sensibly across macOS, Linux, and Windows.
- Confirm glob semantics match user expectations for common patterns, especially
**with a wildcard trailing segment. - Positive feedback from users relying on reading-based filters in production pipelines.
- Integration tests covering the interaction between module walking,
mark_glob_as_read, and--filter 'reading=...'.
mutable-generate
Deduplication of the files produced by generate blocks through content-addressable storage, with a mutable attribute to opt out.
mutable-generate - What it does
This experiment flag is no longer needed, as Terragrunt stores the contents a
generate block produces in the CAS by default. The
file written at path is a read-only link to that stored copy. The link is
read-only because the stored copy is shared: an edit through one path would
change what every later reader of that content sees.
Because the stored copy is addressed by the hash of its contents, anything
generating identical contents links to the same copy instead of writing its own.
A generate block declared in a parent configuration writes the same content
into every unit that includes it, so a provider block shared across a few
hundred units is stored once.
The generate block accepts a mutable attribute for cases where a shared
read-only file does not work:
generate "provider" { path = "provider.tf" if_exists = "overwrite" mutable = true contents = <<EOFprovider "aws" { region = "us-east-1"}EOF}mutable = true gives the block a writable file of its own. Use it when
something writes to the generated file, such as a hook that patches it before
tofu/terraform runs. Terragrunt regenerates the file on every run, and
tofu/terraform only read it, so most generate blocks do not need it.
--no-cas writes generated files directly, and mutable has no effect. The
backend file generated by a remote_state block is always written directly.
See the generate block reference for every attribute the block accepts.
mutable-generate - How to provide feedback
Now that the mutable-generate experiment is complete, please provide feedback in the form of standard GitHub issues.
mutable-generate - Criteria for stabilization
Criteria for moving mutable-generate to a stable release:
- A
mutableattribute on thegenerateblock, parsed from both the block and attribute forms. - Deduplication of non-mutable generated files through the CAS store, materialized as read-only hard links.
- Confirmation that read-only generated files break no established workflow, including hooks and IaC engines.
-
remote_state.generatestays out of the CAS and writes its backend file directly into each unit. - Community feedback on the disk savings actually observed at scale.
oci
Support for downloading modules from OCI Distribution registries using oci:// sources.
oci - What it does
This experiment flag is no longer needed, as oci:// sources are now
supported by default.
OpenTofu 1.10 can download modules from an OCI Distribution registry using an
oci:// source. Terragrunt supports the same sources natively, so a single
source string works the same way in both tofu and Terragrunt against
registries such as Amazon ECR, GitHub Container Registry, Azure Container
Registry, Google Artifact Registry, and self-hosted or air-gapped registries.
Terragrunt accepts oci:// source URLs in terraform { source = "..." }
blocks, and in the unit and stack blocks of a terragrunt.stack.hcl. For
example:
terraform { source = "oci://ghcr.io/acme/terraform-modules/vpc?tag=1.0.0"}unit "vpc" { source = "oci://ghcr.io/acme/terragrunt-units/vpc?tag=1.0.0" path = "vpc"}Specify either tag or digest; omitting both selects the latest tag.
//subdir selectors are supported.
Credentials come from OpenTofu’s CLI config, in the oci_credentials and
oci_default_credentials blocks. Terragrunt reads the file named by
TF_CLI_CONFIG_FILE or TERRAFORM_CONFIG, otherwise the first of ~/.tofurc
and ~/.terraformrc that exists (on Windows, %APPDATA%\tofu.rc and
%APPDATA%\terraform.rc). Unless one of those environment variables is set, it
also merges the *.tfrc and *.tfrc.json files in OpenTofu’s config directory. Terragrunt also reads ambient Docker and containers
auth files (~/.docker/config.json and containers auth.json), following the
containers-auth search order
OpenTofu uses as of OpenTofu 1.12. Set docker_style_config_files in
oci_default_credentials to replace those default search paths, or an empty
list to disable ambient discovery entirely.
Terragrunt ranks every matching CLI-config and ambient credential together by how
much of the repository path each one matches, and uses the single best match. A
CLI-config entry wins only when both candidates match equally closely. The
oci_default_credentials helper is the global fallback, and Terragrunt pulls
anonymously when nothing matches. Set discover_ambient_credentials = false in
the oci_default_credentials block to use CLI config only.
Credential helpers
configured in either place
(credHelpers
and
credsStore
in the Docker config, or a block’s docker_credentials_helper, such as
ecr-login)
are invoked when selected as the credential source, so ECR and other
helper-backed registries work without a baked-in login.
oci - How to provide feedback
Track and discuss this experiment in gruntwork-io/terragrunt#4555. When reporting issues or providing feedback, please include:
- The registry you are using (ECR, GHCR, ACR, GAR, self-hosted).
- The authentication method (an OpenTofu CLI-config
oci_credentialsblock, ambient Docker config, or a credential helper such asecr-login), and the CLI config file in use. - The full
oci://source string, and whether you pin bytagordigest. - Any errors encountered during module download.
oci - Criteria for stabilization
To transition the oci feature to a stable release, the following were completed:
- A getter that resolves
oci://sources, selecting theapplication/vnd.opentofu.modulepkgartifact and itsarchive/ziplayer, with blob digest verification. - OpenTofu CLI-config and ambient Docker-config credential discovery matching OpenTofu’s search order.
- Credential-helper support (
docker-credential-*,ecr-login) so ECR and other helper-backed registries work through the configured helper. - Content-addressable caching keyed on the resolved manifest digest, with correct re-resolution of mutable tags.
- A portability guarantee that one source string produces an identical module via
tofuand Terragrunt. - Documentation covering the source syntax, authentication tiers, and publishing contract.
- Integration test coverage driving the full download chain against a local OCI Distribution registry.
- Gated CI coverage against hosted registries (GHCR, ECR) with real credentials.
- Community feedback on real-world usage.
opt-out-auth
Opt out of running --auth-provider-cmd during the discovery phase.
opt-out-auth - What it does
By default, Terragrunt runs --auth-provider-cmd once per parsed component during the discovery phase, so configuration parsing can reliably resolve HCL functions such as get_aws_account_id and run_cmd. On large repositories, this dominates wall-clock time because the auth command runs for every discovered unit rather than only the subset that will actually run.
The --no-discovery-auth-provider-cmd flag (env: TG_NO_DISCOVERY_AUTH_PROVIDER_CMD) skips those discovery-time auth invocations. The auth provider command still runs normally for the units that actually execute. This experiment flag is no longer needed, as --no-discovery-auth-provider-cmd is now available by default.
Units whose discovery-relevant blocks depend on credentials produced by --auth-provider-cmd will fail to parse with the flag set. Use it when you know parsing will resolve successfully without any prior authentication.
terragrunt run --all \ --no-discovery-auth-provider-cmd \ --queue-include-units-reading=./changed-file.txt \ planopt-out-auth - How to provide feedback
Now that the opt-out-auth experiment is complete, please provide feedback in the form of standard GitHub issues.
opt-out-auth - Criteria for stabilization
To transition the opt-out-auth feature to a stable release, the following were completed:
- Confirm the discovery-phase opt-out covers the auth scenarios users rely on without surprising parse failures.
- Measure the wall-clock improvement on large
run --allinvocations with reading-based filters. - Decide whether additional phases warrant their own opt-out flags.
- Community feedback on real-world usage.
optional-dependency-outputs
Support for skipping all dependency output resolution during a run.
optional-dependency-outputs - What it does
This experiment flag is no longer needed, as the --no-dependency-outputs flag (env: TG_NO_DEPENDENCY_OUTPUTS) is now available by default. It skips output resolution for every dependency block in the run, so Terragrunt does not call tofu output on dependencies. The effect matches setting skip_outputs = true on each dependency block.
terragrunt run --no-dependency-outputs -- initterragrunt run --all validate --no-dependency-outputsUse it for commands that do not need dependency outputs, such as init or validate, or when dependencies have not been applied yet.
See the --no-dependency-outputs reference for how the flag treats mock_outputs.
optional-dependency-outputs - How to provide feedback
Now that the optional-dependency-outputs experiment is complete, please provide feedback in the form of standard GitHub issues.
optional-dependency-outputs - Criteria for stabilization
Criteria for moving optional-dependency-outputs to a stable release:
- Validate behavior with single-unit and queue-based runs.
- Gather community feedback on the flag name and scope.
- Confirm the interaction with commands that require dependency outputs (such as
plan,apply, ordestroy).
optional-hooks
Support for disabling Terragrunt hooks during run.
optional-hooks - What it does
This experiment flag is no longer needed, as the --no-hooks flag (env: TG_NO_HOOKS) is now available by default. It skips every before_hook, after_hook, and error_hook block in the run, including run --all.
terragrunt run --no-hooks -- planterragrunt run --all --no-hooks -- planUse it to bypass hook automation temporarily, e.g. when debugging a faulty hook or OpenTofu/Terraform module.
optional-hooks - How to provide feedback
Now that the optional-hooks experiment is complete, please provide feedback in the form of standard GitHub issues.
optional-hooks - Criteria for stabilization
Criteria for moving optional-hooks to a stable release:
- Validate behavior with single-unit and queue-based runs.
- Gather community feedback on whether all hook types should be skipped.
- Confirm the flag name leaves room for more granular hook controls in the future.
profiling
Collect CPU profiles, memory (heap) profiles, and goroutine profiles for Terragrunt.
profiling - What it does
This experiment flag is no longer needed, as Terragrunt collects runtime profiles by default. Use these CLI flags, or the corresponding TG_PROFILE_* environment variables:
--profile-cpu/TG_PROFILE_CPU: write a CPU profile--profile-mem/TG_PROFILE_MEM: write a heap memory profile--profile-goroutine/TG_PROFILE_GOROUTINE: write a goroutine profile (stack traces of all goroutines)--profile-dir/TG_PROFILE_DIR: collect all of the above into a single directory using conventional filenames
Example:
terragrunt --profile-dir /tmp/profiles run --all -- planThis is primarily intended for performance investigation and debugging of Terragrunt itself.
profiling - How to provide feedback
Now that the profiling experiment is complete, please provide feedback in the form of standard GitHub issues.
profiling - Criteria for stabilization
To transition the profiling feature to a stable release, the following were addressed:
- Validate that profiling reliably covers Terragrunt runs across different invocation styles.
- Ensure documentation (CLI flags + env vars) is complete and accurate.
- Gather feedback on the chosen flag names (
--profile-*). - Decide whether additional profile types (block, mutex, etc.) should be exposed.
- Confirm the interaction with
--experiment-modeandTG_EXPERIMENTis ergonomic.
report
Support for Terragrunt Run Reports and Summaries.
report - What it does
Allows generation of run reports and summary displays. This experiment flag is no longer needed, as the report feature is now stable and available by default.
report - How to provide feedback
Now that the report experiment is complete, please provide feedback in the form of standard GitHub issues.
report - Criteria for stabilization
To transition the report feature to stable, the following have been completed:
- Add support for generating reports (in CSV format by default).
- Add support for displaying summaries of runs.
- Add ability to disable summary display.
- Add support for generating reports in JSON format.
- Add comprehensive integration tests for the
reportexperiment. - Finalize the design of run summaries and reports.
runner-pool
Proposes replacing Terragrunt’s group-based execution with a dynamic runner pool that schedules Units as soon as dependencies are resolved. This improves efficiency, reduces bottlenecks, and limits the impact of individual failures.
runner-pool - What it does
Allow usage of experimental runner pool implementation for units execution.
runner-pool - How to provide feedback
Provide your feedback on the Runner Pool.
runner-pool - Criteria for stabilization
To transition the runner-pool feature to a stable release, the following must be addressed:
- Use new discovery and queue packages to discover units.
- Add support for including/excluding external units in the discovery process.
- Add runner pool implementation to execute discovered units.
- Add integration tests to track that the runner pool works in the same way as the current implementation.
- Add performance tests to track that the runner pool implementation is faster than the current implementation.
- Add support for fail fast behavior in the runner pool.
- Improve the UI to queue to apply.
- Add OpenTelemetry support to the runner pool.
stack-dependencies
Support for the autoinclude block in terragrunt.stack.hcl files, enabling dependency relationships and configuration overrides during stack generation.
stack-dependencies - What it does
This experiment flag is no longer needed, as the autoinclude block is now available by default. The block nests inside unit and stack blocks in terragrunt.stack.hcl files.
The autoinclude block allows users to define dependency blocks and arbitrary configuration that gets generated into an autoinclude file during stack generation. This file is automatically merged into the unit/stack configuration when parsed.
The generated filename depends on the component kind:
- Unit autoincludes are written as
terragrunt.autoinclude.hclnext to the unit’sterragrunt.hcl. - Stack autoincludes are written as
terragrunt.autoinclude.stack.hclnext to the nested stack’sterragrunt.stack.hcl. The.stack.hclsuffix mirrorsterragrunt.stack.hclso tooling (LSP,read_terragrunt_config(), indexers) can identify the file’s purpose from its name alone.
The feature also includes:
unit.<name>.pathandstack.<name>.pathvariables for referencing sibling component paths, both insideautoincludeblocks and in a unit or stack block’svalues(so a parent stack can pass a component path down to a child stack)dependencyblocks targeting stack directories: aggregated outputs from all units in the stack (dependency.stack_name.outputs.unit_name.output_key)- Automatic shallow merge of
terragrunt.autoinclude.hclinto unit configurations, using the same default merge strategy as a regularinclude(on conflicting top-level keys, the autoinclude wins and replaces the unit’s value) - Stack dependency expansion in the run queue: depending on a stack waits until all its units complete
Unit-to-unit dependencies within a stack
unit "vpc" { source = "../catalog/units/vpc" path = "vpc"}
unit "app" { source = "../catalog/units/app" path = "app"
autoinclude { dependency "vpc" { config_path = unit.vpc.path }
inputs = { vpc_id = dependency.vpc.outputs.vpc_id } }}Dependencies on entire stacks
stack "infra" { source = "../catalog/stacks/infra" path = "infra"}
unit "app" { source = "../catalog/units/app" path = "app"
autoinclude { dependency "infra" { config_path = stack.infra.path }
inputs = { vpc_id = dependency.infra.outputs.vpc.vpc_id } }}stack-dependencies - How to provide feedback
Now that the stack-dependencies experiment is complete, please provide feedback in the form of standard GitHub issues.
stack-dependencies - Implementation roadmap
-
Phased parser for
terragrunt.stack.hcl: parse the file body, evaluate locals and values, apply include merges, then decode unit/stack blocks and resolve autoinclude. This lets unit/stack blocks uselocal.*,values.*, and Terragrunt functions. -
terragrunt run --alldiscovery can scan generated nested stack files without evaluating the unitsource. -
Unify strict and permissive parser into a single code path
-
Add integration tests and test fixtures for end-to-end validation
-
Add E2E validation with
stack run applyandstack run destroy -
Catalog source preservation across stack copy: nested stack files copied into
.terragrunt-stack/<name>/get a.terragrunt-stack-originmarker file, so bare relative../../units/...paths resolve against the original catalog, not the copy. Only applies to local stack sources; remote and CAS-fetched stacks are unchanged. -
PartialEvaldepth guard (maxPartialEvalDepth = 10000) andIsWhollyKnown/IsNullchecks on the fast path and traversal/template/conditional/parens branches, preventing crashes on unknown values or pathological nesting. -
Typed errors with
Unwrap()across the package (FileParseError,FileDecodeError,IncludeValidationError,LocalEvalError,MalformedDependencyError,AutoIncludeParserStageError) preservinghcl.Diagnosticsfor source positions. -
Deterministic cycle reports in
LocalsCycleError.Names(DFS dep iteration sorted). -
resolveStackFilePathreturns(string, bool): callers branch onisStackCandidateinstead of a sentinel empty string. Backed by a two-arg fuzz that exercises raw/target independently. -
Removed Unicode from
internal/hclparsesource files (ASCII-only); intentional Unicode test fixtures remain. -
The
.terragrunt-stack-originmarker file is no longer written when nested stack files are copied into.terragrunt-stack/<name>/. Useupdate_source_with_cas = trueonunitandstackblocks to keep relativesourcepaths working in catalog stack files; relative attributes are rewritten tocas::references at generation time so the generated tree is self-contained. -
Community feedback on
autoincludesyntax and merge behavior -
Validate performance at scale
stacks
Support for Terragrunt stacks.
stacks - What it does
Enable stack command to manage Terragrunt stacks.
stacks - Criteria for stabilization
To transition the stacks feature to a stable release, the following must be addressed:
- Add support for
stack run *command - Add support for
stack outputcommands to extend stack-level operations. - Integration testing for recursive stack handling across typical workflows, ensuring smooth transitions during
plan,apply, anddestroyoperations. - Confirm compatibility with parallelism flags (e.g.,
--parallel), especially for stacks with dependencies. - Ensure that error handling and failure recovery strategies work as intended across large and nested stacks.
version-attribute
Support for a version attribute on the terraform block that resolves a registry module from a version constraint.
version-attribute - What it does
This experiment flag is no longer needed, as the terraform block accepts the version attribute by default. The attribute holds a version constraint for a tfr:// registry module, such as ~> 3.3 or >= 1.0.0, < 2.0.0:
terraform { source = "tfr://registry.opentofu.org/terraform-aws-modules/vpc/aws" version = "~> 3.3"}On every run, Terragrunt resolves the constraint against the registry’s list-versions endpoint before the download begins, then fetches the highest published version that satisfies it. The syntax matches the version argument on OpenTofu and Terraform module blocks, so the source URL can leave out an exact version.
The constraint lives only in the version attribute. Terragrunt downloads and caches the exact version it resolved, and the --source override accepts an exact pin only.
See the terraform block reference for how the attribute combines with ?version= and --source.
version-attribute - How to provide feedback
Now that the version-attribute experiment is complete, please provide feedback in the form of standard GitHub issues.
version-attribute - Criteria for stabilization
Criteria for moving version-attribute to a stable release:
- Terragrunt resolves the constraint on every run, so a newly published version that satisfies it is downloaded on the next run without
--source-update. Theterraformblock reference documents this. - A prerelease is eligible only when the constraint names one (e.g.
>= 1.0.0-rc1), matching OpenTofu and Terraform. -
--sourceandTG_SOURCEaccept exact pins only, and a constraint there is an error. - Community feedback on real-world usage.