I am starting using Terraform and imported my current infrastructure from Azure using aztfy (im starting to think that was a bad idea...)
Now I have all my resources in in single main.tf file... security group, network, disk, instance...
I would like to start the project with good pratice, but there is many informations on internet and i am a bit lost.
I would like to manage multiple cloud provider in a single project, i was thinking of just separate them by repository like this:
terraform/
-> azure/
-> gpc/
-> xxx/
-> main.tf
-> .terraform/
Do you think its a good practice ?
Then i would like to separate my infrastructure by type like this:
terraform/
-> azure/
-> tools/ #container all my tools resources (gitlab...etc.)
main.tf
...
-> prod/ #¢ontaining all my prod resources
main.tf
...
-> dev/
main.tf
Again, do you think its a good idea ? It seems that terraform don't automatically looks in sub-directory folders.
Thanks for your advices.