Introduction

Learn how to use provisioners to execute scripts on local or remote environments.

Overview

When we set up resources, we may need to configure them afterward. We can use a couple of ways to manage our resource configuration, and Terraform provisioners are one of these methods.

Terraform provisioners
Terraform provisioners

What are provisioners?

Provisioners are used to help us with the provisioning of our resources via Terraform. The basic syntax is as below:

provisioner "type" {
# configuration options for the provisioner
}

Types of provisioners

Provisioners can be of two types, local-exec provisioners and remote-exec ...