remote-exec provisioner
Last updated
What is remote-exec provisioner?
The remote-exec provisioner in Terraform is used to invoke scripts directly on a remote resource after it has been created. This provisioner is commonly used for tasks like software installation, configuration, or any other setup required on the newly created resource. It can run either a list of commands or a script file on the remote system. The remote-exec provisioner requires a connection block to specify how to access the remote system, typically using SSH for Linux or WinRM for Windows. While useful for initial setup tasks, it's generally recommended to use this provisioner sparingly and prefer more robust configuration management tools for complex or ongoing management tasks. Care should be taken to ensure that scripts run by remote-exec are idempotent and handle potential network issues or other failures gracefully.
Free resources to learn remote-exec provisioner
- Official docsRemote-exec provisioner
- ArticleTerraform remote-exec provisioner
- VideoTerraform - remote-exec
More in stage 15: Provisioners
remote-exec provisioner: common questions
Can I learn remote-exec provisioner in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain remote-exec provisioner in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this remote-exec provisioner tutorial for beginners?
It is lesson 64 of 110 in the free Terraform roadmap, in stage 15, Provisioners. If you are new to Terraform, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.