Modules | Terraform Tutorial | #15

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 135

  • @RicardoLinares-z8s
    @RicardoLinares-z8s 7 місяців тому +2

    The only Terraform teacher I understand 😂 Thank you! 😃

    • @WillBrock
      @WillBrock  7 місяців тому +1

      Awesome, glad it was helpful

  • @dalaiwu716
    @dalaiwu716 4 роки тому +50

    Best terraform tutorial I have seen so far. Thank you for sharing.

    • @WillBrock
      @WillBrock  4 роки тому +2

      Thanks, glad you liked it!

    • @timjen2544
      @timjen2544 Рік тому

      @@WillBrock 😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊

  • @DreamHound
    @DreamHound 2 роки тому +2

    I have spent MONTHS TRYING TO UNDERSTAND MODULES AND YOU ARE THE FIRST TO MAKE IT in clear real example details. Amazing thank you so much!!

    • @WillBrock
      @WillBrock  2 роки тому +1

      Awesome, glad it was helpful :)

  • @johnsonmaurice98
    @johnsonmaurice98 3 роки тому +5

    Will you are a gifted teacher. This is the best Terraform tutorial I've encoountered. If you are not already doing so you should consider putting up classes on the learning platforms like Coursera, Udemy, etc and get PAID !!!! You deserve it.

    • @WillBrock
      @WillBrock  3 роки тому +1

      Thanks for the kind words Maurice! I have thought about doing paid courses, maybe sometime in the future.

    • @mynewinterests
      @mynewinterests 2 роки тому

      @@WillBrock it's been a year since mentioned this(paid courses) and I'm sure with the overwhelming positive comments, you'll please give it a thought... I know you may not be so enthused about the money but please do...I believe it'll be more encompassing...
      Blessings

  • @nikker7471
    @nikker7471 Рік тому

    Great explanation! I have spent the last few days hitting my head in the wall because my modules were not working. Thanks to your explanation about root and child modules now everything is crystal clear. Thank you!

  • @PatrickBurkeTV
    @PatrickBurkeTV 2 роки тому

    I've been asking myself "when would I use a module instead of a resource?" for the past week. You answered it in the first 30 seconds. Thank you Will!!

  • @KingstonFortune
    @KingstonFortune 2 роки тому

    when I searched for terraform modules, this video came out as number 1, I was wondering why, but now I know why...this is hands down the best TF module explanation video on youtube.
    Some quick tips, for aligning the equals, you can use terraform fmt, also for seeing output values without running apply, you can use terraform refresh.

    • @WillBrock
      @WillBrock  2 роки тому

      Thanks for the kind words and tips!

  • @jsandorkosa
    @jsandorkosa 2 роки тому

    This is exactly what I was looking for. The other videos approached the topic in such a complicated way that by the end I didn't feel like watching it anymore.
    Great work. Keep it up ;)

    • @WillBrock
      @WillBrock  2 роки тому

      Awesome, glad it was helpful

  • @Ashu6443
    @Ashu6443 2 роки тому

    This is the best video I have seen so far regarding TF module. Thanks

  • @sebastianfarias5670
    @sebastianfarias5670 Рік тому

    OMG finally someone came up with a decent terraform hands on tutorial ! thank you so very much !!!

  • @mayureshpatilvlogs
    @mayureshpatilvlogs 4 роки тому

    On of the best tutorial series on Terraform I came accross. I tried multiple other videos and not able clear the basics concept you have cleared doubts. Thanks a lot for such easy and straight forward explanation. Keep it up 👍

    • @WillBrock
      @WillBrock  4 роки тому

      Thanks for the kind words. I'm glad they have been helpful.

  • @0001chichi
    @0001chichi 3 роки тому +1

    Woo. Thank you. I really got a lot from this videos more than the thousand of hrs spent watching other videos. Thanks

    • @WillBrock
      @WillBrock  3 роки тому

      Awesome, glad to hear!

  • @johnnyxxx1115
    @johnnyxxx1115 2 роки тому +1

    Great Tutorial, i understood the basics of modules completely with this video. Well worth the 30 minutes . Thank you

  • @mosesg45
    @mosesg45 2 роки тому

    Brilliant modules tutorial , the simplicity and breakdown. Thanks a million Will.

    • @WillBrock
      @WillBrock  2 роки тому

      Great! I'm glad it was helpful

  • @we3kbb
    @we3kbb 4 роки тому +3

    Keep doing what your doing! You channel will grow. Enjoying your content

    • @WillBrock
      @WillBrock  4 роки тому +1

      Thanks for the kind words!

  • @davidcsidavidcsi
    @davidcsidavidcsi 3 роки тому +3

    great tutorial! I was struggling with modules and this cleared a lot of stuff for me. Thanks!

  • @miyelanimaluleke859
    @miyelanimaluleke859 3 роки тому

    You are the best. Watching from South Africa. Thank you!

    • @WillBrock
      @WillBrock  3 роки тому

      Awesome, thanks for watching!

  • @rogerdpm
    @rogerdpm 4 роки тому +4

    @Will Brock - Great videos. Keep up the good work. I have noticed that you align the "=" signs. Just one tip. I usually use "terraform fmt" at the command line to align them.

  • @tienpho
    @tienpho 3 роки тому +1

    you are awesome! I am a newbie to TF and you have helped me getting up on speed in NO TIME! Thank you so much!

    • @WillBrock
      @WillBrock  3 роки тому +1

      Awesome, I'm glad it has helped you!

  • @BhanyReddy
    @BhanyReddy 3 роки тому +1

    Awesome.. straight to the point.. and clear.. described for a newbie in mind.

  • @5e88e
    @5e88e 10 місяців тому

    Great video! What I needed!
    Shift+alt+f to auto format instead of all the space clicking!

  • @praveenojha8961
    @praveenojha8961 2 роки тому

    Thanks for your efforts for make us understanding in so simple words.
    Missing your new videos.
    Haven't see any videos from long time
    Kindly keep sharing your knowledge with world.

    • @WillBrock
      @WillBrock  2 роки тому

      Thanks for the kind words. Haven't had time to create new videos but hopefully at some point I'll do some more

  • @williamhardison3287
    @williamhardison3287 4 роки тому

    Awesome video Will, just listening to your videos, and how you explain every detail has helped me understand a lot more about Terraform (especially for a Sys Admin that doesn’t have a programming background).

  • @rabiechaya
    @rabiechaya 4 роки тому +2

    Thanks Will, Very well orgnized structure of videos and clear explanation. I am new to terraform and I am now involved in maintaining and updating very complex envi. :-/ , but your explanation gave me a clear understand how things orgnized and built in terraform. thanks for your effort to make this explanation available for everyone.
    /Rabie

  • @eejin8
    @eejin8 3 роки тому

    By far the best terraform video !!!

  • @SiddharthSinghFiery69
    @SiddharthSinghFiery69 3 роки тому +1

    Really well explained tutorial on modules. Thanks Will !

  • @techwithotabek
    @techwithotabek Рік тому

    Amazing and very clear explanation! Thanks a lot

  • @inaslohith3678
    @inaslohith3678 Рік тому

    It's really made me to understand better on tf modules. .

  • @lonewolf2547
    @lonewolf2547 3 роки тому

    Best explanation on youtube. Really gr8 work man

  • @felipeozoski
    @felipeozoski 3 роки тому +1

    Thank you so much for this playlist!!! we all really appreciate it!

  • @ghost1on
    @ghost1on 3 роки тому

    Really REALLY great tutorial - thank you Will

  • @ebrahima9647
    @ebrahima9647 3 роки тому

    You are the man!
    I am now a pro in TF.

  • @forexmeter3900
    @forexmeter3900 2 роки тому

    Very well explained. Thank you!

  • @keithcampbell6352
    @keithcampbell6352 3 роки тому

    You’re amazing, these videos are coming in clutch. Subscribed.

  • @karthiksam5
    @karthiksam5 3 роки тому

    Superb Explanation. Thanks

  • @edwinpaul8474
    @edwinpaul8474 2 роки тому

    Thank you Will, for this amazing video.

    • @WillBrock
      @WillBrock  2 роки тому

      No problem. Glad you liked it.

  • @chrispelfrey8651
    @chrispelfrey8651 Рік тому

    Solid tutorial. Thank you!

  • @kanishkadas5907
    @kanishkadas5907 2 роки тому

    Best terraform tutorial

  • @aiparodyman
    @aiparodyman 3 роки тому

    Outstanding video.

  • @TheSouhailus
    @TheSouhailus 3 роки тому

    the best tutorial ever

  • @yougenxue7665
    @yougenxue7665 3 роки тому

    Thanks Will. Great videos.

  • @republic2033
    @republic2033 4 роки тому

    Thank you Will, that was a very clear explanation

  • @sree964
    @sree964 2 роки тому

    Absolutely wonderful.

  • @padmanathanmariappan5694
    @padmanathanmariappan5694 3 роки тому

    This is best ..... Keep rocking will

  • @abir95571
    @abir95571 Рік тому

    Thanks man .. appreciate your effort

  • @mariawtr
    @mariawtr 2 роки тому

    Thank you so much! It helped me a lot!! New subscribed!

    • @WillBrock
      @WillBrock  2 роки тому +1

      Awesome, glad it has been helpful

  • @sansomonite
    @sansomonite 3 роки тому

    Nicely explained. Thanks much.

  • @rejeevesundar3982
    @rejeevesundar3982 Рік тому

    awesome explanation sir

  • @CHANTI8947
    @CHANTI8947 2 роки тому

    this guy is awesome 👏 🙌

  • @mayureshpatilvlogs
    @mayureshpatilvlogs 4 роки тому +1

    Please create video on how to use remote module. Have you worked on MongoDb provider in Terraform

  • @rouabahoussama
    @rouabahoussama 3 роки тому

    Perfect explanation 👌🏾 thank u

  • @Trythrow
    @Trythrow 2 роки тому

    Good one, keep it up!

  • @desiboyz4695
    @desiboyz4695 4 роки тому +1

    Hello sir,
    Thank you for these tuts.
    Can you pls a video on dockers using terraform from starting to end ... Eg installation to create a container ,image and run it .

  • @puppyofwrath
    @puppyofwrath 3 роки тому

    I watched this on a Friday night.

  • @vijaygupta0842
    @vijaygupta0842 3 роки тому

    such a knowledgeable tutorial on Terraform module , almost everything has been covered .Just wanted to know instead of declaring a value of variable in module , Can we pass a tfvars file to module ?

  • @uchennamakaawa6665
    @uchennamakaawa6665 Рік тому

    Thanks Will for the detailed explanation, I have a follow-up question. I have 3 folders (named after the regions) for deploying to different regions, so these folders share 2 module resources. Is it possible to use one tf apply to deploy all resources in each folder or I must be on each folder directory to deploy one after the other? I'm not sure if my question is clear enough.

  • @clwither
    @clwither 2 роки тому

    Great video!

  • @veerenchawda4376
    @veerenchawda4376 3 роки тому

    Amazing tutorial

  • @gregdonohoe9253
    @gregdonohoe9253 3 роки тому

    Great content Will. I have a question: In your webserver directory you have mani.tf, variables.tf & outputs.tf. In a more complex configuration would it be possible to split the main.tf across multiple modules ie one for vpc, one for subnets etc etc???

    • @DineshMannam
      @DineshMannam 3 роки тому

      yes, we can split them and call them from main.tf using source

  • @mailamiton
    @mailamiton 3 роки тому

    Thanks for the video. it really helped. how can we use the environment variable file(tfvars) with the module . In this case, do we need variable.tf in main directory as well ??

  • @varuntiwari2226
    @varuntiwari2226 4 роки тому +1

    Hello Will
    How we can call another module if we have dependany on another module to target that resource
    like we have 2 module one is VPC and another is ec2 so after creation of VPC we need to deploy ec2 in that particular subnet so how we can do it pleae suggest we.

    • @WillBrock
      @WillBrock  4 роки тому

      In terraform 0.13 you can use depends_on like you can with other resources.

  • @nagarajunagari4749
    @nagarajunagari4749 4 роки тому +1

    Thanks Will, How do you run "a" module 1st and then only "b" module 2nd. ? Please let me know.

    • @WillBrock
      @WillBrock  4 роки тому

      In terraform version 0.13 you can use depends_on but that is still in beta. Another way would be to use output values from one module into another.

  • @sarveshrasam9635
    @sarveshrasam9635 3 роки тому

    i have created one module for Application load balancer, in that i have mentioned multiple resource blocks, each resource block has 'name' attribute common.... how i can assign value to specific resource block's name attribute ?

  • @ChintanThakker-v5r
    @ChintanThakker-v5r Рік тому

    What if your module directory which you are sourcing, like in this case webserver has its own provider file?

  • @subhankarde3300
    @subhankarde3300 2 роки тому

    What happens when required_version criteria is not met and I am using an old terraform version ? Do I need to upgrade ? Can it be overridden ?
    Also does same thing happen for provider versions in modules ?

  • @simplyviki
    @simplyviki 4 роки тому

    Hey Will, I am looking for Terraform Import tutorial and couldn't find any proper explanation. In case we create few resources manually and then want to update our existing TFState file, what is the process ? Do you have any such tutorial ?

  • @ramirez368
    @ramirez368 2 роки тому

    Question in the directory structure, why are you calling under setup/main.tf....why is not from webserber/main.tf??

  • @sankaranand503
    @sankaranand503 3 роки тому

    very good tutorial

  • @stevenwilliams7774
    @stevenwilliams7774 3 роки тому

    how do you get the code to line up under the resource type? All the equal signs are stacked evenly on top of each other? Is this a separate
    extension?

  • @pbezanillat
    @pbezanillat 3 роки тому

    Nice video, thanks !

  • @ChanceMinus
    @ChanceMinus 4 роки тому

    Fantastic! Thank you...

  • @nstr111
    @nstr111 2 роки тому

    very nice

  • @shahoftrading
    @shahoftrading 3 роки тому

    how come we have to call the module.will_webserve.instance to export
    the data of aws_instance.webserver? Why cant we just do the regular output?
    Like I dont see any of the data from "wills_webserver" being exported at all its all the aws_instance data

  • @tshaylatte9502
    @tshaylatte9502 4 роки тому +1

    thanks again, is there any way we can contribute to your work? tipee ?

    • @WillBrock
      @WillBrock  4 роки тому

      I've got venmo. wpbrock is the handle

  • @mrbeats7434
    @mrbeats7434 4 роки тому

    thanks man. Well done

  • @tegarsantosa3813
    @tegarsantosa3813 2 роки тому

    great tutorial! but how can i define a global variable which accessible for all modules?

  • @vaishaligupta5509
    @vaishaligupta5509 3 роки тому

    I am getting error while using output section
    E:\Terraform1\AWS_Infra>terraform plan
    Error: Unsupported attribute
    on check_code.tf line 16, in output "vpc_details":
    16: value = module.VPC.VPC_ID
    This value does not have any attributes.

  • @UmpikLumpik
    @UmpikLumpik 2 роки тому

    I came across a problem that if you have IntelliJ and your main.tf is in src/ and there you create a subfolder and your module got source="module" then you get:
    Invalid module source address: Module "vpcNgw" (declared at main.tf line 7) has an invalid source address "modules": Terraform cannot detect a supported external module source type for modules.
    The solution to that is to put your main.tf into some subfolder like src/terraform/main.tf and have a module in like src/module/main.tf. Having the module source set to "../module" then works

  • @mandeepsinghbal3159
    @mandeepsinghbal3159 4 роки тому

    Lets say i have 4 modules for org policy each with different constraints... while sending data from tfvars... i am unable to send more than 1 module data

  • @gouthamreddy1269
    @gouthamreddy1269 4 роки тому

    Thank you

  • @liyuling1984
    @liyuling1984 2 роки тому

    1.25x speed feels good

  • @duckboymiro3533
    @duckboymiro3533 3 роки тому

    11:04 what was it
    very nice tutorial tho

  • @ifeanya7856
    @ifeanya7856 2 роки тому

    why's he always saying/using foobar? confuses the heck outta me 😩

  • @rawanalsubhi7316
    @rawanalsubhi7316 4 роки тому

    Perfect explanation

  • @oronboyxd69
    @oronboyxd69 3 роки тому

    very helpful!