First of all, thanks for providing this great book!
The Getting started with structuring of Terraform configurations section states that terraform.tfvars files should exclusively be used with composition:
terraform.tfvars should not be used anywhere except composition.
In turn, the Composition section defines composition as follows:
Composition is a collection of infrastructure modules, [...]
However, the example for small-size infrastructures doesn't have any module but nevertheless uses a terraform.tfvars file.
I'm wondering who's wrong here - the code structure section or the code example?
First of all, thanks for providing this great book!
The Getting started with structuring of Terraform configurations section states that
terraform.tfvarsfiles should exclusively be used with composition:In turn, the Composition section defines composition as follows:
However, the example for small-size infrastructures doesn't have any module but nevertheless uses a
terraform.tfvarsfile.I'm wondering who's wrong here - the code structure section or the code example?