Assuming I have multiple *.tf
files in a terraform project. When I execute a terraform apply
I want to know if:
- Terraform will go over all files to build the DAG (Direct Acyclic Graph) and then start provisioning the resources.
- Terraform will read file by file and provision the resources and when a dependency was found it will skip the resource and come back after resolving the dependency in question.
According to the documentation, the order of resources is based upon relationships instead of files:
You can also use the
terraform plan
action to see what resources would be created without performing an execution: