4 ways to structure your terraform projects!

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 21

  • @RahulGupta-cp8rv
    @RahulGupta-cp8rv 3 หลายเดือนก่อน +1

    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.

  • @prasantaroychoudhury6355
    @prasantaroychoudhury6355 27 วันที่ผ่านมา +1

    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?

  • @Winner4ever
    @Winner4ever ปีที่แล้ว +1

    Thanks a lot ,I have been searching for this solution for a while

    • @ajitinamdartech
      @ajitinamdartech  ปีที่แล้ว +1

      Hi Sman, glad it was helpful for you. Let me know if you have any video request, I’ll try to accommodate the same.

  • @bhakta_rg
    @bhakta_rg 7 หลายเดือนก่อน +1

    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

    • @ajitinamdartech
      @ajitinamdartech  6 หลายเดือนก่อน

      Sure. I'm planning to create a video on the same.

  • @tarunraj8187
    @tarunraj8187 ปีที่แล้ว +1

    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

  • @-XSX-
    @-XSX- ปีที่แล้ว +1

    This is really helpful..
    We have our infra similar to 3rd dir structure you show, but 2nd and 4th is quite interesting.

    • @ajitinamdartech
      @ajitinamdartech  ปีที่แล้ว

      Thanks S, glad it was helpful for you!

  • @rubelrob6039
    @rubelrob6039 5 หลายเดือนก่อน

    for the second folder structure do you have any ci pipelines setup ?

    • @ajitinamdartech
      @ajitinamdartech  4 หลายเดือนก่อน

      I will create a video for the same

  • @vinvvinv7460
    @vinvvinv7460 ปีที่แล้ว +1

    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

    • @ajitinamdartech
      @ajitinamdartech  ปีที่แล้ว

      Hi,
      Sure. I have planned to create an entire series on Terraform in the coming few months. Thanks.

  • @tomasnobile5181
    @tomasnobile5181 8 หลายเดือนก่อน +1

    Hi! don't you use Terraform workspaces??
    Greetings from Argentina

    • @ajitinamdartech
      @ajitinamdartech  8 หลายเดือนก่อน +1

      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.

  • @nwn722
    @nwn722 ปีที่แล้ว +1

    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

    • @ajitinamdartech
      @ajitinamdartech  ปีที่แล้ว +2

      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 🙂

  • @user-wf1fk7sj6c
    @user-wf1fk7sj6c ปีที่แล้ว +1

    this approach is duplicating parent recourses when terraform plan run.

    • @ajitinamdartech
      @ajitinamdartech  ปีที่แล้ว

      Hi,
      In which folder are you executing the same?