A unit sets a lock timeout for each command that locks the state.
terraform { extra_arguments "retry_lock" { commands = commands.accept_locking arguments = ["-lock-timeout=20m"] }}A field of the commands variable.
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().
A unit sets a lock timeout for each command that locks the state.
terraform { extra_arguments "retry_lock" { commands = commands.accept_locking arguments = ["-lock-timeout=20m"] }}