Using Provisioners, local-exec, or remote-exec
Explore how to use Terraform provisioners such as local-exec and remote-exec to run scripts during resource creation. Understand when and how to use provisioners effectively, their potential pitfalls, and alternatives for managing configuration and data loading in cloud environments.
We'll cover the following...
We'll cover the following...
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 ...