How to create terraform modules? - Part 9

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

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

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

    Thanks for taking time to make such wonderful video tutorials. Highly Appreciated!

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Glad you like them!

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

    Very neat and clear explanation. Sir kindly please make a session on nested modules and how can we access/read the variable input/output values from one module to another. It will be a great great help for those who are struggling with terraform like me😄. Thanks in advance!!

  • @prasadrao4840
    @prasadrao4840 2 ปีที่แล้ว

    Perfect Explanation in video , Step by step . Many thanks Rahul

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

    module was tough for me but now I got it very clearly thank you sir

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

      You are most welcome

  • @DG-cd3jb
    @DG-cd3jb ปีที่แล้ว

    Clear explanation. Is there a complete terraform session with GCP ?

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

      Not yet but soon

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

    Nice explanation. It would be more helpful "How Modules have exposed the output variables" ?

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Great suggestion! But at the moment i can not edit the video after publishing but surely update in my guide

  • @zerokneospark7363
    @zerokneospark7363 13 วันที่ผ่านมา

    Hi Rahul, I created everything step by step but some where I missed something I guess I am able to to apply, terraform apply but "No changes. Your infrastructure matches the configuration." getting. If someone could help me would be great helpful.

  • @knoxkuber
    @knoxkuber 11 หลายเดือนก่อน

    I have question regarding while creating private module it is necessary to specify transform version. If we specify transform version again module what we are used with another provider has some compatibility issue what need to done. Thank your for this Terraform video series.

  • @Rakesh-fc1wr
    @Rakesh-fc1wr 9 หลายเดือนก่อน

    hi rahul , we have prebuilt modules in hashicorp , like vpc module , there are public and private subnets default in vpc module, now if you want to ignore or you dont want to create private subnets how to do it ?

  • @Kk-rl7nv
    @Kk-rl7nv ปีที่แล้ว

    Hi Rahul,
    Can you suggest how we can prevent or safe to existing resources in AWS which may or may note created from terraform to delete or destroy or replaced when we reuse modules to create new resources like suppose we have 100+ ec2 and we want to provision via ec2 modules and run terraform plan and apply then previous one will not impact /delete/replaced.
    Appreciate for you suggestions.

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

    Best explanation...
    Good work Bro

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Thank you so much 🙂

  • @anithakuruba4673
    @anithakuruba4673 6 หลายเดือนก่อน +1

    Cool session 🎉🎉

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

      You are welcome

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

    Thanks for your time

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

      You are welcome

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

    The goal of modules is DRY principle, but here module-1 and module-2 are exactly the same leading to code duplication. can't we use only one module and customize the module-1 and module-2 as variables?

  • @sambhajikhune6205
    @sambhajikhune6205 2 ปีที่แล้ว

    hi Rahul , thanks for your hardwor. how to deside sequence of module

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

    Great session Sir

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

    You have not provided the code repo link, please provide the github repo link for code

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

    it was crisp and precise video

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

      You are welcome

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

      @@RahulWagh bhai please provide the github repo of your code discussed in this video

  • @senthilkumar5129
    @senthilkumar5129 2 ปีที่แล้ว

    very good explanation it is easy way to understand keeep ....... thanks

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Thanks for liking

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

    Hi Rahul, Love your work! However, sometimes you need to give another example for macOS users who rely on amazon Linux. For example, it failed to load up the website and I found it was because of the Ubuntu commands in the user_data. Also in the provisioners, mac users need to write ec2-user in the connections block but again that was not mentioned had to figure it out.

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

    You have not explained what is in variables.tf , outputs.tf file. If they don't contain anything please mention. Your web-page can explain that too.

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

    Thanks a lot for wonderful video very much helpful for new learner’s 👌👌

  • @harishphapale600
    @harishphapale600 7 หลายเดือนก่อน

    Neat and clear explanation. Could you please prepare video on plumini IAC as well.

    • @RahulWagh
      @RahulWagh  7 หลายเดือนก่อน

      Will try

  • @janithpanditharathne6196
    @janithpanditharathne6196 2 ปีที่แล้ว

    thank you for your video series. well explained

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      You are welcome

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

    sir we can we install apache from instance without bash script ?

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

      I do not think so you need to have script if you want to install apache on instance

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

    Simplified tutorial as always , however appreciate if you could be help me on one small issue :)
    While creating this , its throwing this error - "creating Security Group (sg1): InvalidGroup.Duplicate: The security group 'sg1' already exists for VPC 'vpc-0a6bfddfe1c57ec20'" .
    Which makes sense as module1 created the same security group . So was thinking whats the workaround for this incase I dont like to crease seperate security groups for each module . Cheers !

  • @chayanchoudhury6041
    @chayanchoudhury6041 2 ปีที่แล้ว

    So easily explained..nice video

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Thank you so much 🙂

  • @sandv2902
    @sandv2902 2 ปีที่แล้ว

    Sir how can we state count here example I want to launch module 1 with 3 instances can I do it?

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

    Hi Rahul, Can you kindly make few videos on ‘CDKTF’ using TypeScript language

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

      Surely, i will add into my list of todo

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

    Good explanation sir

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

    Thanks for creating an amazing video and keen to know what command did you use to reduce the display path. (check on this state 13:00)

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

      export PS1=“$ “

  • @rritsoftwaresolutions9566
    @rritsoftwaresolutions9566 2 ปีที่แล้ว

    nice super explanation keep it up bro
    please share more this kind of videos
    thankq bro

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Sure keep following

  • @sohandogra7185
    @sohandogra7185 3 ปีที่แล้ว

    Great sir, As usual your videos are good to learn
    Please upload videos for Jenkins pipeline rollback

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว

      Surely it will be there in upcoming weeks

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

    Sir, I didn't understand, i.e., I didn't find anything like module 2 calling module 1

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Well module 2 was just an thought which i mentioned in the session but if you understand the concept of modules then it would not be hard for you to implement multiple modules

  • @zubandesi8052
    @zubandesi8052 2 ปีที่แล้ว

    could you please share every file which you used as in my lab showing error of duplicate error fo aws_key , vpc, Duplicate: The security group.

  • @arunrajsb1450
    @arunrajsb1450 2 ปีที่แล้ว

    if i convert my existing monolith to module, will my exiting infra gets destroy?

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

      I think it will quite a lot of things, probably you need to carefully handle your terraform state file to do such type of migration

  • @saintr392
    @saintr392 2 ปีที่แล้ว

    Can u explain on self link in terraform

  • @raw_wish
    @raw_wish 2 ปีที่แล้ว

    Amazing!

  • @rajsrsj
    @rajsrsj 2 ปีที่แล้ว

    Super Session

  • @prudhviraj7888
    @prudhviraj7888 2 ปีที่แล้ว

    👏👏👏👏🙌 thank you so much brother

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      You welcome bro

  • @mannukewat8727
    @mannukewat8727 2 ปีที่แล้ว

    Can we use workspace and module together in terraform? if yes then how?

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

      ​ @Rahul Wagh , please reply

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Yes you can use it both together. But it is hard to write down everything here in comments. But I would recommend you to combine both the examples which I have uploaded on TH-cam for module and workspace

    • @mannukewat8727
      @mannukewat8727 2 ปีที่แล้ว

      @@RahulWagh thank you responce. I just now tested and it's worked. Your videos are awesome. It' cleared lots of my doubts.. keep posting videos

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      @@mannukewat8727 Glad it helped you to learn terraform

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

    How to create nested loops in terraform

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

      There is loop lab session on my channel

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

      @@RahulWagh thanks will check it out

  • @prithvi561
    @prithvi561 7 หลายเดือนก่อน

    where is the code git repo?

  • @tanveersyed1049
    @tanveersyed1049 3 ปีที่แล้ว

    Super sir....pls make a video on jenkins terraform docker kubernetes git integration

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

      It’s on my list

  • @vickydops
    @vickydops 2 หลายเดือนก่อน

    Instead of using 2 modules you cloud have used variables with single module, which is the ideal way.

  • @mohammedhassainsaitqadri4326
    @mohammedhassainsaitqadri4326 3 ปีที่แล้ว

    bhai you are awesome

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว

      good to know

  • @i-am-oi
    @i-am-oi 2 ปีที่แล้ว

    I hope somebody can help me to solve this issue and understand how to implement the best approach. I have a number of situations where I need to retry a task n-times if it fails.
    My ask is, I need help writing a Terraform module to monitor an azure task which is to restart it in case it encounters an exception. retry logic). If an exception is thrown, the task should be retried up to the max-retry count.

  • @subanana
    @subanana 3 ปีที่แล้ว

    Rahul, all ur terraform series are so good except this one on modules !
    why because the test case used here to explain the theory part is different compared to the demo one, so this doesn't give a good understanding finally !

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว

      thanks for feed back but let me ask you a question you being a honest viewer - do you feel example is not good enough if we discard the theory part?

    • @subanana
      @subanana 3 ปีที่แล้ว

      @@RahulWagh sorry to say this, but yes examples in this part of modules was not good enough !
      But all other videos on this terraform series were really great. tkz.

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว

      Point taken

  • @sahadevdahit
    @sahadevdahit 8 หลายเดือนก่อน

    ❤❤❤❤❤❤❤❤ hurry

    • @RahulWagh
      @RahulWagh  8 หลายเดือนก่อน

      Enjoy it there are more on the channel

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

    Thanks for valuable content.

  • @adilmehmoodbutt007
    @adilmehmoodbutt007 2 ปีที่แล้ว

    Great explanation, I love it.

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Glad to hear it!