Skip to content
🎉 Terragrunt v1.0 is here! Read the announcement to learn more.

Experiments

Terragrunt supports operating in a mode referred to as “Experiment Mode”.

Experiment Mode is a set of controls that can be enabled to opt in to experimental features before they’re stable. These features are subject to change and may be removed or altered at any time. They generally provide early access to new features or changes that are being considered for inclusion in future releases.

Those experiments will be documented here so that you know the following:

  1. What the experiment is.
  2. What the experiment does.
  3. How to provide feedback on the experiment.
  4. What criteria must be met for the experiment to be considered stable.

Sometimes, the criteria for an experiment to be considered stable is unknown, as there may not be a clear path to stabilization. In that case, this will be noted in the experiment documentation, and collaboration with the community will be encouraged to help determine the future of the experiment.

The simplest way to enable experiment mode is to set the experiment-mode flag.

This will enable experiment mode for all Terragrunt commands, for all experiments (note that this isn’t generally recommended, unless you are following Terragrunt development closely and are prepared for the possibility of breaking changes).

Terminal window
terragrunt plan --experiment-mode

You can also use the environment variable, which can be more useful in CI/CD pipelines:

Terminal window
TG_EXPERIMENT_MODE='true' terragrunt plan

Instead of enabling experiment mode, you can also enable specific experiments by setting the experiment flag to a value that’s specific to an experiment. This can allow you to experiment with a specific unstable feature that you think might be useful to you.

Terminal window
terragrunt plan --experiment symlinks

Again, you can also use the environment variable, which can be more useful in CI/CD pipelines:

Terminal window
TG_EXPERIMENT='symlinks' terragrunt plan

You can also enable multiple experiments at once.

Terminal window
terragrunt --experiment symlinks plan

Including the environment variable:

Terminal window
TG_EXPERIMENT='symlinks,stacks' terragrunt plan