What is a Terraform Child Module?

  Рет қаралды 6,293

Wahl Network

Wahl Network

Күн бұрын

Пікірлер: 18
@newallst
@newallst 3 жыл бұрын
Nice one.. Got the concept on the first go watching this video! Cheers.
@arifsultan2009
@arifsultan2009 2 жыл бұрын
Great video. Thanks I was looking for this:)
@edv6502
@edv6502 2 жыл бұрын
Great clear cut info! Thanks!
@sureshainavilli3377
@sureshainavilli3377 2 жыл бұрын
thanks for the useful information
@atexnik
@atexnik Жыл бұрын
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?
@deborah_chrysoprase
@deborah_chrysoprase 3 жыл бұрын
Thanks for this video! Most of these tutorials out there show us how to print output variables but not do anything useful with them.
@Wahlnetwork
@Wahlnetwork 4 жыл бұрын
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!
@vishwasgupta3180
@vishwasgupta3180 3 жыл бұрын
Do you have any video about sending input parameters to the module?
@George-mk7lp
@George-mk7lp 3 жыл бұрын
thanks for your videos.. this is a huge help for beginners.. believe or not
@gauravmanshani206
@gauravmanshani206 2 жыл бұрын
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
@joepinto5066
@joepinto5066 2 жыл бұрын
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
@vositislomov1404
@vositislomov1404 3 жыл бұрын
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" ?
@George-mk7lp
@George-mk7lp 3 жыл бұрын
You can use this alias to make shortcuts for your commands: alias tf='terraform' alias tfa='terraform apply' alias tfc='terraform console' alias tfd='terraform destroy' alias tff='terraform fmt' alias tfg='terraform graph' alias tfim='terraform import' alias tfin='terraform init' alias tfo='terraform output' alias tfp='terraform plan' alias tfpr='terraform providers' alias tfr='terraform refresh' alias tfsh='terraform show' alias tft='terraform taint' alias tfut='terraform untaint' alias tfv='terraform validate' alias tfw='terraform workspace' alias tfs='terraform state' alias tffu='terraform force-unlock' alias tfwst='terraform workspace select' alias tfwsw='terraform workspace show' alias tfssw='terraform state show' alias tfwde='terraform workspace delete' alias tfwls='terraform workspace list' alias tfsls='terraform state list' alias tfwnw='terraform workspace new' alias tfsmv='terraform state mv' alias tfspl='terraform state pull' alias tfsph='terraform state push' alias tfsrm='terraform state rm' alias tfay='terraform apply -auto-approve' alias tfdy='terraform destroy -auto-approve' alias tfinu='terraform init -upgrade' alias tfpde='terraform plan --destroy' you have to put them under code . ~/bashrc when you type on this on your terminal it will open bashrc file and you could copy paste the commands and exit from instance and start using or without exit also could use them
@danielciucur7100
@danielciucur7100 2 жыл бұрын
alias tfplan='terraform plan'
@lordcommander7551
@lordcommander7551 4 жыл бұрын
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?
@Wahlnetwork
@Wahlnetwork 4 жыл бұрын
You could try making the data object dependent on the resource object by using 'depends_on'.
@lordcommander7551
@lordcommander7551 4 жыл бұрын
@@Wahlnetwork i did that still does the same thing
@Wahlnetwork
@Wahlnetwork 4 жыл бұрын
☹ That is a bummer. I have not made much use of provisioners - sorry!
Importing Private Terraform Modules
11:47
Wahl Network
Рет қаралды 8 М.
Creating Modules in Terraform
14:35
Ned in the Cloud
Рет қаралды 9 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 8 МЛН
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 34 МЛН
Learn Terraform State in 10 Minutes
10:04
Wahl Network
Рет қаралды 31 М.
Modules and Outputs with Terraform and Azure
28:02
Travis Roberts
Рет қаралды 33 М.
Beginners Tutorial to Terraform with AWS
8:46
Wahl Network
Рет қаралды 96 М.
How to create terraform modules? - Part 9
18:11
Rahul Wagh
Рет қаралды 63 М.
Workspaces | Terraform Tutorial | #16
19:17
Will Brock
Рет қаралды 48 М.
Terraform Enterprise: Understanding Workspaces and Modules
9:17
Beginners Tutorial to Terraform with Azure
9:42
Wahl Network
Рет қаралды 77 М.
What is Terraform null_resource and how to use it? - Part-21
19:10
Terraform with Multiple State Files
26:14
Michael Crilly
Рет қаралды 21 М.
Getting started with Terragrunt
8:18
Cloud Advocate
Рет қаралды 36 М.