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/ - Наука та технологія
The way you explained things made it easier for me to understand Terraform. Thanks!
There’s nobody better than Travis explaining Terraform 👍🏻👍🏻
Thanks!
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!!!
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!
The best and simplest example I have seen to understand what the hell is module?.. Crystal clear!!
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.
Thank you!
This is the best resource I have found for me to be able to understand modules! Thank you!!
Why didnt I discover this before! Tf with Azure is so rare, this is beauty.. PLease continue this one, long way to go!
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!!
great explanation, thank you Travis.
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.
This video is simply great. You made a lot of effort to make it easy to understand
Very simple and great content. Thanks a lot Travis
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.
yes, there is no one can better explain than Travis.
Great stuff! Well prepared!
Output part at the end help me . As i was unable to see the output from root module. Thanks alot!
This was honestly a great video!
WOW! This was so helpful. Thanks a lot!
thanks for this video, was struggling to understand the real motivation behind using modules in Terraform.
Excellent stuff!
Thanks Travis.... This is a very much to the point..
Great playlist!
Very good content!
Very well explained
Nice Explanation ... Superb..
i understood clearly,Thanks
Thanks Travis
You are Awesome , as always..
Thank you so much 😀
Very informative. Is there a complete session on the terraform course with GCP?
made it easy
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?
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
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".
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.
@Travis Roberts can you make a video on child modules to create multiple resources with loop
what is the use of this base_name variable in this video @ 8:20. Please help me understand this
This one started getting bit confusing for me. earlier 3 videos in seriew were like handholding one.
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
you are not a real developer. windows in WHITE theme and VS is White theme too. Who are you imposter ?
You caught me :) The higher contrast light theme is so much better for videos and presentations.