Which provisioner invokes a process on the machine running Terraform?
Which provisioner invokes a process on the machine running Terraform?
The 'local-exec' provisioner is used to execute a command or script on the machine running Terraform. This is opposed to the 'remote-exec' provisioner, which runs commands on the resource being provisioned. Therefore, the correct answer is 'local-exec'.
https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec
C. local-exec The local-exec provisioner is used to execute a command or script locally on the machine running Terraform. It's often used for tasks such as running scripts after resource creation or performing local setup/configuration tasks.
C. local-exec
local-exec provisioner is execute on the local machine.
vote C
The local-exec provisioner invokes a local executable after a resource is created. This invokes a process on the machine running Terraform, not on the resource. https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec
The remote-exec provisioner invokes a script on a remote resource after it is created. This can be used to run a configuration management tool, bootstrap into a cluster, etc. To invoke a local process, see the local-exec provisioner instead. The remote-exec provisioner requires a connection and supports both ssh and winrm.