Skip to content
Permalink
Browse files
Merge pull request #31049 from miyagawa-michiru/update-local-exec-arg…
…uments

`local-exec` documentation lacks on-destroy documentation
  • Loading branch information
laurapacilio committed May 19, 2022
2 parents f7f4a82 + 61271ef commit 55edc6a6af00d6579cf23d49994bcf42353f3b16
Showing 1 changed file with 5 additions and 0 deletions.
@@ -57,6 +57,11 @@ 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 when Terraform will execute the command.
For example, `when = destroy` specifies that the provisioner will run when the associated resource
is destroyed. Refer to [Destroy-Time Provisioners](/language/resources/provisioners/syntax#destroy-time-provisioners)
for details.

### Interpreter Examples

```hcl

0 comments on commit 55edc6a

Please sign in to comment.