I have a repo and in the root I have three directories for qa, stage and prod for each environment to create infrastructure in respective environment.
And I want to keep the code DRY (Don’t repeat yourself).
NOTE: In each directory qa, stage and prod we are calling the child modules which are in the remote and not placing the child module configuration at the root of the module.
I have a providers.tf file which is a globally common where all the providers are defined and each have alias. But, I want to place the provideres.tf file in the root of the repo instead of placing the SAME file in all the three qa, stage and prod directories.
Is it possible to place the common globally defined Providers.tf file in the root of the repo and build the infrastructure in all the environments? Also, we are trying to stick with the vanilla terraform instead using the terragrunt. Is it possible?