mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 08:21:07 -06:00
Add an explanation about the argument 'when' for local-exec
This commit is contained in:
parent
1846a4752e
commit
315d168cc0
@ -57,6 +57,12 @@ The following arguments are supported:
|
||||
* `environment` - (Optional) block of key value pairs representing the
|
||||
environment of the executed command. inherits the current process environment.
|
||||
|
||||
* `when` - (Optional) If provided, specifies the timing when the command will
|
||||
be executed. If `when = destroy` is specified, the provisioner will run when
|
||||
the resource it is defined within is destroyed. See
|
||||
[Destroy-Time Provisioners](/language/resources/provisioners/syntax#destroy-time-provisioners)
|
||||
for more details.
|
||||
|
||||
### Interpreter Examples
|
||||
|
||||
```hcl
|
||||
|
Loading…
Reference in New Issue
Block a user