Skip to content

engine

unit

Usage

terragrunt.hcl
engine {
source = "github.com/gruntwork-io/terragrunt-engine-opentofu"
version = "v0.2.0"
}
Terminal window
terragrunt run --experiment iac-engine -- plan

Terragrunt downloads the engine, verifies its checksum, and runs tofu plan through it.

Without the experiment, Terragrunt ignores the block and runs tofu/terraform itself. --no-engine does the same for one run.

See IaC engines for caching, checksum checks, and how engines use meta.

Attributes

sourcestring

Where to get the engine, e.g. a GitHub repository, an HTTP(S) URL to a release archive, or a local absolute path.

terragrunt.hcl
engine {
source = "github.com/gruntwork-io/terragrunt-engine-opentofu"
version = "v0.2.0"
}
versionoptional(string)

The release of a GitHub source to download. Without it, Terragrunt downloads the latest release.

terragrunt.hcl
engine {
source = "github.com/gruntwork-io/terragrunt-engine-opentofu"
version = "v0.2.0"
}
typeoptional(string, ""rpc"")

The engine type. rpc is the only type.

terragrunt.hcl
engine {
source = "github.com/gruntwork-io/terragrunt-engine-opentofu"
type = "rpc"
}
metaoptional(map(any))

Settings for the engine, e.g. a tool version or connection details. Each engine defines the keys it reads.

terragrunt.hcl
engine {
source = "github.com/gruntwork-io/terragrunt-engine-opentofu"
meta = {
key_1 = ["value1", "value2"]
key_2 = "1.6.0"
}
}