...

/

Using Provisioners, local-exec, or remote-exec

Using Provisioners, local-exec, or remote-exec

Learn the basics of Terraform provisioners and when to use local and remote provisioners.

When a resource is created, we may have some scripts or operations we’d like to perform locally or on the remote resource. Terraform provisioners are used to accomplish this goal. To a certain degree, they break the declarative and idempotent model of Terraform. Provisioner execution isn’t necessarily atomic or idempotent because it’s executing an arbitrary script or instruction. Terraform ...