Definition:
provisioner block
resource terraform_data <label> {
provisioner "<TYPE>" {
<arguments>
}
}
Types:
file
: Copies files or directories from the machine where Terraform is running to the new resource.
local-exec
: Invokes an executable on the local machine after Terraform creates the resource.
remote-exec
: Invokes an executable on the remote resource after Terraform creates the resource.
Arguments:
- each type has their own, refer to docs
- Shared between all types:
- connection block: specify how to connect to that resource to provision
connection block