Ajit thank you so much for the structure I really like the 4th one easy to maintain and upgrade without touching other environments. Looking forward to seeing more videos like this which help us understand the Best terraform practices.
Hi, could you please explain how to set up the terraform project structure that works with terraform test command? The 'tests/' directory seems to only work at the project's root level. How should I organize and test code for individual modules?
4th architecture makes most sense, else it will be too many state files to manage! Thank you for sharing, liked and subscribed. If you could please make a detailed video on EKS and Codepipeline...thanks
The 4th tier architecture really used very popular cases of project please do one Terraform project it will really helpful to many people to understand easily
Hi, can you please make a video & explain step by step the writing/structure of Ansible & Terraform in a simple manner & in layman's terms, like when & where to add spaces, hyphens, what is variable, etc it's a bit confusing.I am not from a programming background hence find it difficult to understand the structure of writing Ansible & Terraform. Please it's a request, do reply
Hello, We can use terraform cloud workspaces with all the mentioned structures. However I’m not a big fan of local workspaces hence didn’t include that. Hope that answers your question.
it is such a drawback which there no standard way to abstractly handle terraform codes. just defining modules is not enough. there should be a way to pass various tfvar files to each module. maintaining all the parameters in a single tfvar file also a not good approach
Hi Nuwan, Thanks for your feedback. I have created this structure after careful consideration of certain parameters and has worked for us in our several enterprise projects. In this video I have just demonstrated the TF structures, obviously there will be ways to pass TF var files to each env and eventually to respective modules. Most of our projects have environment specific separate folders which contain TF var files for that environment only. However, I understand your concerns but I have demonstrated what has worked for us 🙂
Ajit thank you so much for the structure I really like the 4th one easy to maintain and upgrade without touching other environments. Looking forward to seeing more videos like this which help us understand the Best terraform practices.
Most welcome
Hi, could you please explain how to set up the terraform project structure that works with terraform test command? The 'tests/' directory seems to only work at the project's root level. How should I organize and test code for individual modules?
Thanks a lot ,I have been searching for this solution for a while
Hi Sman, glad it was helpful for you. Let me know if you have any video request, I’ll try to accommodate the same.
4th architecture makes most sense, else it will be too many state files to manage! Thank you for sharing, liked and subscribed. If you could please make a detailed video on EKS and Codepipeline...thanks
Sure. I'm planning to create a video on the same.
The 4th tier architecture really used very popular cases of project please do one Terraform project it will really helpful to many people to understand easily
Sure Tarun. Thanks for your feedback.
This is really helpful..
We have our infra similar to 3rd dir structure you show, but 2nd and 4th is quite interesting.
Thanks S, glad it was helpful for you!
for the second folder structure do you have any ci pipelines setup ?
I will create a video for the same
Hi, can you please make a video & explain step by step the writing/structure of Ansible & Terraform in a simple manner & in layman's terms, like when & where to add spaces, hyphens, what is variable, etc it's a bit confusing.I am not from a programming background hence find it difficult to understand the structure of writing Ansible & Terraform. Please it's a request, do reply
Hi,
Sure. I have planned to create an entire series on Terraform in the coming few months. Thanks.
Hi! don't you use Terraform workspaces??
Greetings from Argentina
Hello,
We can use terraform cloud workspaces with all the mentioned structures. However I’m not a big fan of local workspaces hence didn’t include that. Hope that answers your question.
it is such a drawback which there no standard way to abstractly handle terraform codes. just defining modules is not enough. there should be a way to pass various tfvar files to each module. maintaining all the parameters in a single tfvar file also a not good approach
Hi Nuwan,
Thanks for your feedback.
I have created this structure after careful consideration of certain parameters and has worked for us in our several enterprise projects.
In this video I have just demonstrated the TF structures, obviously there will be ways to pass TF var files to each env and eventually to respective modules.
Most of our projects have environment specific separate folders which contain TF var files for that environment only.
However, I understand your concerns but I have demonstrated what has worked for us 🙂
this approach is duplicating parent recourses when terraform plan run.
Hi,
In which folder are you executing the same?