Skip to content

commands.accept_locking

unitstacklist(string)

A field of the commands variable.

Usage

commands.accept_locking holds these commands: apply, destroy, import, plan, refresh, taint, and untaint.

It has the same value as get_terraform_commands_that_need_locking().

Examples

A unit sets a lock timeout for each command that locks the state.

terragrunt.hcl
terraform {
extra_arguments "retry_lock" {
commands = commands.accept_locking
arguments = ["-lock-timeout=20m"]
}
}