Modules and Outputs with Terraform and Azure

preview_player
Показать описание
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

Hybrid Identity with Windows AD and Azure AD

Code on GitHub

Blog

Terraform Provider Site
Рекомендации по теме
Комментарии
Автор

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

cheslei
Автор

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

joshc
Автор

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!!!

IsmaelUll
Автор

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!

davidstein
Автор

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

redmis
Автор

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!!

RobFearn
Автор

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

asmitabagchi
Автор

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

GrayGhostZoro
Автор

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.

fpwilliams
Автор

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.

runtcpip-morganlucas
Автор

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

rajeshchowdary
Автор

Very simple and great content. Thanks a lot Travis

nethisadanandam
Автор

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

allaroundme
Автор

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

gofazal
Автор

WOW! This was so helpful. Thanks a lot!

kislaysinha
Автор

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

Jahanjune
Автор

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.

_indrid_cold_
Автор

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

ezvztcg
Автор

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

DG-cdjb
Автор

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".

rauldee