Skip to content

commands

unitstack

Usage

Each field of commands is a list of the OpenTofu/Terraform commands that accept one set of flags. Use a field as the commands of an extra_arguments block or of a hook:

terragrunt.hcl
terraform {
before_hook "notify" {
commands = commands.accept_locking
execute = ["echo", "This command locks the state"]
}
}

commands has the same value in a unit, in a file that the unit includes or reads, in a terragrunt.values.hcl file, and in a terragrunt.stack.hcl file.

Fields