Terraform variable.tf | terraform.tfvars | Terraform command line variables - Part 3

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

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

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

    Thank you, for taking the time to explain the concepts very clearly and SLOWLY without rushing through the presentation.

  • @richardwaldron1684
    @richardwaldron1684 3 หลายเดือนก่อน

    Excellent demo! I was really struggling to understand the purpose and value of tfvars files and I've looked at a lot of different sources. The structure, content and clarity of your demo made this (finally) really straightforward to understand. Thanks for sharing.

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

      Great to hear!

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

    Whatever information you are providing it if much useful for me and simplistic way you are explaining...thanks j-hooq

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

      Glad to hear that

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

    You are giving clear explanation. its amazing session

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

      You are welcome

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

    Crystal clear explanation brother!!! I was some other udemy video, concept wasn't clear.. Your video cleared everything

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

      Glad to hear that

  • @Ramankumar-zb5bo
    @Ramankumar-zb5bo ปีที่แล้ว

    Thank you sir for provide all this concepts in simple and effective manner. Thanks a lot again.

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

      You are most welcome

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

    Thank you so much. It really clarified my doubts in terraform variables.

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

      Glad to hear that

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

    Great session , very clear explanation sir

  • @DeepthiSuresh777
    @DeepthiSuresh777 10 หลายเดือนก่อน

    Nice explanation u taught us like a spoon feed thank you

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

      Glad you liked it

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

    Hey Rahul, which terminal you have used run the command like terraform init, etc? Is it gitbash or cmd?

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

    sir can you please tell that how does terraform file calls terraform variable file

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

    Thank you Sir I'm from Pakistan

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

      Welcome

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

    very nice content and great explanation - thanks a lot

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

      Glad you liked it!

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

    when using .tfvars file, should the variables in the variable.tf file be totally empty or can it contain description and type but just not the default value?

  • @Lalitha-l1n
    @Lalitha-l1n 3 หลายเดือนก่อน

    What if we want to pass multiple variables during terraform apply, please share the syntax for that

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

    Thanks for your effort to explain things simply, concept is clear, I have a query, do .tfvars file should have variables defined in variable.tf file?

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

    Good Job Rahul!!! looking forward for a great content from your end, keep up the good work bhava...

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

      Thanks praveen

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

    nice tutorial Rahul , really liked it..

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

      Glad you liked it

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

      @@RahulWagh I was stuck with creating ec2 instance with SSH key and was not able to demonstrate file provisioner, after seeing your video I managed to do it and understand the concept .. Thanks again.

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

    I have on query regarding .tfvars file. if we have different env like dev staggin prod how we managed this tfvars file and where we stored this file?

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

    Thank you so much for the video, really helpful.

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

      Glad it was helpful!

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

    Very good and informative...

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

    Perfect explaination.

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

    i was expecting that when i run 2 plans with the tfvars files i would end up with 2 resources, however i end up with 1 resource that terraform want’s to replace…any help would be greatly appreciated!

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

    Hey hello Rahul I have doubt I have one file called (variable.tfvars) if I change this name into (vars.tfvars) the actual values of (variable.tfvars) not coming so what is the difference between (variable.tfvars to vars. tfvars) can you explain

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

    Hello Rahul,
    Videos are crisped and well explained.. I do have query here.. Thank you so much for sharing a knowledge.
    Is it necessary to execute terraform plan 2 times for stage.tfvars & production.tfvars ? Can't we make add 2 tfvars in single command ?

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

      No it is not necessary to run terraform plan two times, one time is more then sufficient

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

    Excellent Job Rahul......Have a small doubt.....if i have two .tf files in one folder and when i say terraform plan and terraform apply,which .tf it will consider.

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

      I guess it will consider both .tf files

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

    Why you have not given type in variable section when you are using terraform.tfvars

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

    Very well explanation!

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

      Glad it was helpful!

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

    Great video
    So helpful for fresher
    Pls cover full terraform topic

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

      There are more to come on terraform in upcoming weeks. Making video more detailed and concise take a little time. But stay tuned I will be covering the complete the terraform topics .
      //Rahul

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

      @@RahulWagh no where in web we have terraform with Google cloud in detail. Will follow your tutorial .. looking forward for more in-depth material on terraform and Google cloud

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

      Hey Pawan,
      Well I am having one lab session on my channel where i explained about Google Cloud and Terraform, I would recommend you to follow that lab session.
      Here is the time stamp of that particular part where I have shown how to get started with Terraform on Google Cloud - th-cam.com/video/jJX6S5JAGpI/w-d-xo.html
      Click on the above link that.
      I am planning to upload similar lab session in upcoming weeks and months, so if you have any topic then please post here I will add it into my list
      //Rahul

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

    Nice video. Thanks for sharing.

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

      Thanks for the visit

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

    Great job my dear Raul

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

      Thank you! Cheers!

  • @naresh.c2677
    @naresh.c2677 19 วันที่ผ่านมา

    Excellent demo with this all 25 videos can we right terraform associate certification

    • @RahulWagh
      @RahulWagh  19 วันที่ผ่านมา

      Yes, you can

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

    Nice explanation
    Thank you

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

      Glad you liked it

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

    Thank you for your efforts and sharing , Can you help me what is the destroy command when we are using multiple .tfvars file for the same mail.tf , will it be >terraform destroy --var-file ="stage.tfvars" ?

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

    Hi Rahul , is there a way where I'll plan the code and want to issue terraform apply at some point around 11 pm in the day ? is that possible using terraform?

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

      You can create a bash script and in that script you write down all of your terraform command and save them some where. After that you need to write chron job to execute that bash script at whatever time you need

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

    Thank you Rahul for your great session, I couldn't run variables .tfvars codes for gcp, so far rest of variables successfully ran, can you/anyone advise please?

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

    Suppose we execute firat stage.tfvar and after prod.tfvar then will it overwrite the state file?
    Or it will update entry in state file for stage and prod both?

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

      It overrides the current state.. i want to know how we can achieve this (same state file for both tfvars) 👆🏼?..

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

      If you are planning to execute the same terraform file in different environment then I would recommend using terraform workspaces because if you use stage.tfvar and then prod.tfvar it will lead to very unstable tfstate.
      terraform workspaces is meant to solve such problem where you can run the same infra with different profiles

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

    Please do create videos on jenkins and kubernetes too

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

      It is already there probably you haven’t looked at it - Set up complete CI/CD Jenkins pipeline for kubernetes - Part 11
      th-cam.com/video/TPMUxsRI1OA/w-d-xo.html

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

      Here is one more on aws - How to set up AWS Kubernetes Jenkins pipeline? - Part 13
      th-cam.com/video/ENNBdmNn4r0/w-d-xo.html

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

      @@RahulWagh i m gonna complete all these videos in dis weeked and very huge thanks for making us to understand the process in the simplest way.

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

    Very Good Explanation. How can I reach you?

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

      Check the contact page - jhooq.com/contact/

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

    Great stuff, thanks!

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

      Glad you liked it!

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

    thanks a lot for this session.. can you explain the use of *auto.tfvars file as well??

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

      Will upload soon on auto.tfvars in upcoming weeks

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

    Thank you man !!!!!

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

      You're welcome!

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

    awesome

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

      Glad you like it!

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

    ❤❤❤❤

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

      Cheeers

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

    Could you please make a video on terraform state file

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

      Surely i would add it to my todo list

  • @karthiknaidu4730
    @karthiknaidu4730 3 หลายเดือนก่อน

    Hi sir, can you please provide the notes

  • @NavneetKumar-ot5bg
    @NavneetKumar-ot5bg 2 ปีที่แล้ว

    But you have not expalined the terraform.tfvars

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

      It’s hard to capture everything in one video, everyone expect something different but I will make a note for upcoming video

    • @SenthilKumar-uv7rr
      @SenthilKumar-uv7rr 2 ปีที่แล้ว

      Thanks for the wonderful video. Yeah I was expecting the explanation of terraform.tfvars and its benefits than others, until last min of video ! If u have it on any other video plz post the link here.

  • @vineet_kumar555
    @vineet_kumar555 9 หลายเดือนก่อน

    unable tounderstand

  • @NavneetKumar-ot5bg
    @NavneetKumar-ot5bg 2 ปีที่แล้ว

    Could you please make a video on terraform state file

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

      Terraform state video is coming soon