What is a Terraform Child Module?

preview_player
Показать описание
Terraform Child Module Outputs Tutorial | Wahl Network

Terraform outputs are critical to understand when creating child modules that must return data to the parent modules. In this quick tutorial, I show an easy example that should make it easy to start using outputs in your child modules!

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Time Stamps
0:00 - Intro
0:17 - Code Review
1:12 - Child Module
1:47 - Child Configuration
2:42 - Terraform Init
3:00 - Terraform Plan
3:40 - Terraform Apply
4:12 - Terraform State
4:30 - Outro

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Guided Learning -

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Social Media -

#terraform #output #tutorial #infrastructureascode #continuousintegration #ci #iac #cloud #architecture #rest #api #graphql #automation #aws #gcp #azure #design #scripting #coding #operations #devops #git #gitops #containers #kubernetes #tech #technology #technical #pipeline #workflow
Рекомендации по теме
Комментарии
Автор

Can a child module call other child module, like so: root module -> child module -> child module? It this OK practice or something we should avoid doing?

atexnik
Автор

Nice one.. Got the concept on the first go watching this video! Cheers.

newallst
Автор

Terraform outputs are critical to understand when creating child modules that must return data to the parent modules. In this quick tutorial, I show an easy example that should make it easy to start using outputs in your child modules!

Wahlnetwork
Автор

Great video. Thanks I was looking for this:)

arifsultan
Автор

Do you have any video about sending input parameters to the module?

vishwasgupta
Автор

Thanks for the video. If i have a for_each block how to take outputs from those and use them to create child resources.

For example- i have to create folders and within that sub folders I have to create sub folders in some folders. How can i use known after apply values such as folder ids to create those sub folders.

Thanks

gauravmanshani
Автор

Thanks for this video! Most of these tutorials out there show us how to print output variables but not do anything useful with them.

deborah_chrysoprase
Автор

thanks for your videos.. this is a huge help for beginners.. believe or not

George-mklp
Автор

Having an issue and wondering if you mind helping? I am running an aws cli command through local-exec to pull the name of a snapshot for a redshift cluster and put that into a file. I am then trying to call the contents of that file with a data local_file and then use the snapshot name in a cluster build. It seems the data local_file is running before the local-exec, any pointers on how to get around this?

lordcommander
Автор

I used to "terraform plan | terraform apply" commands. But you are using " tf plan | tf apply" how did you make short from "terraform" to "tf" ?

vositislomov
Автор

great, q questoin imagien if yoou have 2 child modules, and yo want to send from child 1 to child 2 . Teorical will be like this Value= module.child1.child2.myoutpout, but of course child1.child2 does work, how can we do it, thanks

joepinto