Executes script file or commands list on remote server if watch value changed.
| Name |
Version |
| terraform |
>= 0.13 |
| null |
~> 3.0.0 |
| Name |
Version |
| null |
~> 3.0.0 |
| Name |
Description |
Type |
Default |
Required |
| ssh_host |
Required: hostname for SSH connection. |
string |
n/a |
yes |
| ssh_private_key |
Required: private key for SSH authentication. |
string |
n/a |
yes |
| commands |
Inline commands. |
list(string) |
[] |
no |
| on_host_changed |
Execute script if SSH host changed. |
bool |
true |
no |
| only_checksum |
Show only checksum of watch value in plan diff. |
bool |
true |
no |
| script |
Path to script file. |
string |
"" |
no |
| ssh_port |
SSH server port number. |
number |
22 |
no |
| ssh_user |
SSH username. |
string |
"root" |
no |
| watch |
Execute script if value changed. |
string |
"" |
no |
| Name |
Description |
| success |
Last success execution identifier. Can be used for call some actions after hook script finished. |