Skip to content

Commit

Permalink
Merge pull request #31049 from miyagawa-michiru/update-local-exec-arg…
Browse files Browse the repository at this point in the history
…uments

`local-exec` documentation lacks on-destroy documentation
  • Loading branch information
laurapacilio committed May 19, 2022
2 parents f7f4a82 + 61271ef commit 55edc6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/docs/language/resources/provisioners/local-exec.mdx
Expand Up @@ -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
Expand Down

0 comments on commit 55edc6a

Please sign in to comment.