Exercise
Explore creating Terraform modules to implement provisioners with triggers that rerun resources when specific files change. Understand how to use filemd5 to detect content changes and manage resource execution effectively in this hands-on exercise.
We'll cover the following...
We'll cover the following...
Problem statement
Create a Terraform module and experiment with which Terraform technique will be invoked to rerun the provisioner. Take some time to figure out the best way to solve this problem. A prov_trig directory with the required files has been created. Also, trigger_file variable and afile.txt have already been created for you.
Let’s try it ...