We have a folder that contains all of our domains, and under each domain is the terraform configuration of the domain, like:
dns/ example1.com/ cdn.tf records.tf example2.com/ mx.tf records.tf example3.com/ txt.tf records.tf
We want to get the path of each changed folder and set it to the strategy matrix, and let Terraform use the path in the matrix to run.
If the following file changed:
dns/example1.com/cdn.tf dns/example2.com/mx.tf dns/example3.com/records.tf
How we get the path to the file like this:
dns/example1.com dns/example2.com dns/example3.com
and how do we set the paths into the matrix?
Is this possible? please help me, thanks.