Modules and Outputs with Terraform and Azure

Поділитися
Вставка
  • Опубліковано 16 лип 2024
  • Modules are an important part of good, reusable terraform code. This video goes over the core concepts of creating modules in Terraform and Azure including structure and best practices. We also review how to use outputs from one module as inputs to another.
    00:00 - Start
    05:41 - Creating Modules Demo
    07:00 - Resource Group Module
    09:56 - Create a Module Block
    12:02 - Storage Account Module
    14:00 - Random Provider
    19:14 - Outputs
    22:13 - Apply Configuration
    Links:
    Zero to Hero with Azure Virtual Desktop
    www.udemy.com/course/zero-to-...
    Hybrid Identity with Windows AD and Azure AD
    www.udemy.com/course/hybrid-i...
    Code on GitHub
    github.com/tsrob50/TerraformE...
    Blog
    www.ciraltos.com/modules-and-...
    Terraform Provider Site
    registry.terraform.io/
  • Наука та технологія

КОМЕНТАРІ • 46

  • @cheslei2011
    @cheslei2011 21 день тому

    The way you explained things made it easier for me to understand Terraform. Thanks!

  • @joshc7865
    @joshc7865 Рік тому +9

    There’s nobody better than Travis explaining Terraform 👍🏻👍🏻

  • @IsmaelUll
    @IsmaelUll Рік тому +1

    I wasted all my day trying to understand how to pass outputs between child and parent and the only thing i should have done was watch this video! Dozens of tutorials and videos and no one has explained this like you have! Congrats!!!

  • @davidstein5143
    @davidstein5143 2 роки тому +10

    I've been going through a lot of examples, blogs, videos, but this one really helped me understand how to setup and use modules. Thanks!

  • @redmi3s51
    @redmi3s51 6 місяців тому

    The best and simplest example I have seen to understand what the hell is module?.. Crystal clear!!

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

    Hail Traveler. If you are looking for the clearest explanation and demonstration of passing generated values between modules, then you’ve found it. This video prevented me from nigh on jumping off the roof! The documentation is not fantastic on this subject (module composition), and even with this crystal clear explanation, it’s still likely to result in some experimentation before everything clicks into place. Thank you for making this.

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

    This is the best resource I have found for me to be able to understand modules! Thank you!!

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

    Why didnt I discover this before! Tf with Azure is so rare, this is beauty.. PLease continue this one, long way to go!

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

    Thank you for showing a simple example of how to consume an output variable from a module! Your demos are great - you keep the code simple and to the point - thank you!!

  • @darlingtonmatongo9436
    @darlingtonmatongo9436 Місяць тому

    great explanation, thank you Travis.

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

    Travis, you are indeed an educator in this space. I'v always enjoyed your videos and very explicit in communicating the message. Thanks and well done.

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

    This video is simply great. You made a lot of effort to make it easy to understand

  • @nethisadanandam3416
    @nethisadanandam3416 11 місяців тому

    Very simple and great content. Thanks a lot Travis

  • @runtcpip-morganlucas
    @runtcpip-morganlucas 2 роки тому +1

    Modules were hard to grasp; This definitely helped clarify what to do. I was getting confused with the file paths and systems. Thanks a lot.

  • @user-ez8vz1tc6g
    @user-ez8vz1tc6g 3 місяці тому

    yes, there is no one can better explain than Travis.

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

    Great stuff! Well prepared!

  • @allaroundme560
    @allaroundme560 3 місяці тому

    Output part at the end help me . As i was unable to see the output from root module. Thanks alot!

  • @bluehippotech
    @bluehippotech 8 місяців тому

    This was honestly a great video!

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

    WOW! This was so helpful. Thanks a lot!

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

    thanks for this video, was struggling to understand the real motivation behind using modules in Terraform.

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

    Excellent stuff!

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

    Thanks Travis.... This is a very much to the point..

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

    Great playlist!

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

    Very good content!

  • @xedose7183
    @xedose7183 9 місяців тому

    Very well explained

  • @user-dr1bn8dj1x
    @user-dr1bn8dj1x 3 місяці тому

    Nice Explanation ... Superb..

  • @yamarthisubbaraoofficial7043

    i understood clearly,Thanks

  • @raphael-okere
    @raphael-okere 2 роки тому

    Thanks Travis

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

    You are Awesome , as always..

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

      Thank you so much 😀

  • @DG-cd3jb
    @DG-cd3jb Рік тому

    Very informative. Is there a complete session on the terraform course with GCP?

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

    made it easy

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

    Hi Travis, sorry for the noob question. I'm curious why the variables base_name and location are duplicated in two modules StorageAccount and ResourceGroup. Can you expand on that?

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

    I have been tasked with creating dozens, if not hundreds, of new site listeners, rules, probes, etc. in Application Gateway in the coming months. Is terraform the best approach, or are there better solutions for rapid scale out deployment? I currently have PowerShell scripts that work perfectly for a one-off site. Thanks, Tim

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

    Very helpful video.
    If we do a for-each over a map inside the main.tf in root path to create 2 storage group then in that case how do we write the output file .
    I am getting an error as follows. Could you kindly help.
    │ │ module.resources is object with 2 attributes

    │ This object does not have an attribute named "stg_account_name".

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

    Travis, a couple of things: 1. How do I import something... a service principal, for instance. 2. What if I had to cancel an apply because it just kept running and running.

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

    @Travis Roberts can you make a video on child modules to create multiple resources with loop

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

    what is the use of this base_name variable in this video @ 8:20. Please help me understand this

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

    This one started getting bit confusing for me. earlier 3 videos in seriew were like handholding one.

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

    How to use the data source block .... On modules
    My task is I have resources group existing now am trying to add resources under that resources group ....
    How can I achive this ?
    I want to add storage account on the resources group that is already existing ... Created manually.
    Folder structure :
    Dev
    Main tf
    Test
    Main.tf
    Modules
    Resources group
    Main.tf
    Var.tf
    Storage account

  • @Yaroslav-ww8zo
    @Yaroslav-ww8zo 7 місяців тому

    you are not a real developer. windows in WHITE theme and VS is White theme too. Who are you imposter ?

    • @Ciraltos
      @Ciraltos  7 місяців тому

      You caught me :) The higher contrast light theme is so much better for videos and presentations.