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.
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.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
090200f
3 months, 3 weeks ago090200f
3 months, 3 weeks agotrextor
6 months, 2 weeks agoenry99ita
11 months, 2 weeks agoenry99ita
11 months, 1 week agotabkar
1 year, 6 months agoOleg_gol
1 year, 6 months ago