Wow! The video was very comprehensive and I've walked away with actually understanding the subject; massive applause! I'll be tuning in more often now; thanks for taking the time and posting this high quality content! 🙏🏼
@mymd20047 ай бұрын
Thanks for teaching us....Regards from Argentina!
@nathanaelfrappart7114 жыл бұрын
Man, what you do is just awesome. It's the second time you publish a video spot on, for my current work. I just finished a vault on ACI project (although I did it full terraform) a few weeks ago, and now that I'm working on templating a fortigate vm configuration file, you bring me the comparison between template_file and templatefile() on a plate. I can't thank you enough. :)
@NedintheCloud3 жыл бұрын
Glad I could help!
@87rushi3 жыл бұрын
Thanks, man!! you saved my day!! I was trying to create a JSON file for my ECS Docker Container Definition and this looping thing was killing me / blocking me to write a more dynamic JSON file based on the values passed in. This video is really helped me a lot. I am going to try templatefile function. Thanks again!
@hectordelarosa17113 жыл бұрын
Such an awesome video, saved me hours of writing template_file
@NedintheCloud3 жыл бұрын
Glad it helped!
@FaidonPassias2 жыл бұрын
Hey! Very cool video! Love your style!
@KoljaMineralka3 жыл бұрын
Thank you Ned! Just what I was looking for...
@NedintheCloud3 жыл бұрын
Glad I could help!
@krunalshah24843 жыл бұрын
Nice Presentation and Explanation!!
@kingsadmin3 жыл бұрын
nice one! thanks ned!
@Manishkumar-zj9zw3 жыл бұрын
Great content man..
@saneejmc4 жыл бұрын
Cool..Nice one as usual👍
@ApoorvaGarg03083 жыл бұрын
Thanks for the tutorial. Very helpful!
@snitkjaer2 жыл бұрын
Would it be possible to create providers dynamically using templatefile? I.e. depending on data create an azurerm providers for each subscription_id
@shekelboi Жыл бұрын
You can create providers dynamically using templates but I you need to apply twice, since first you generate the TF file, then you can execute it. I'm not sure if there is any way to do it in one apply, that's what I'm looking for right now.
@tuipo53 жыл бұрын
Brilliant !
@longb19133 жыл бұрын
2:21 video start
@itsalushta3 жыл бұрын
Hello, How save output in file? just > filename? Or some plugin can make file with output with template what I want?
@akshaylavhale21723 жыл бұрын
Hey Ned, Actually for templatefile I don't want to use local.tf instead I want to load variable values directly in main.tf file before executing it like variable should get load through ${mystring} through linux machine and not from any of the terraform variable file like variable.tf or any other method of setting variables in terraform. If you know for yaml we can do this using gomplate(it's a rendering utility which yaml, json, hashicorp vault supports). Is there any way or any rendering utility available using that I can load the variable value in main.tf file and once all the values are loaded inside it then I should able to execute this main.tf file.
@pallabkolkata3 жыл бұрын
@Ned in the Cloud Hi Ned, what is the use case for this templatefile if you take say Azure Cloud as an example. It would be great if you can let me know the usecase of this templatefile function.
@NedintheCloud3 жыл бұрын
I tend to use the templatefile function to dynamically generate custom_data for an Azure VM. For instance, I use it in this example: github.com/ned1313/terraform-tuesdays/tree/master/2021-03-09-Consul-Terraform-Sync/environment You could skip using a templatefile function and do it all in-line with heredoc syntax. Personally, I like to break it out into its own file.
@nathanbenton20513 жыл бұрын
great video! I'd be really interested to see something showing cross-root module variable sharing. if that doesn't make sense let me know - I'll clarify!
@DallasGraves Жыл бұрын
Hi, it's me from the future, here to report that Hashicorp has in fact deprecated the "template_file" plugin.
@NedintheCloud Жыл бұрын
🎊🎊🕺🪩
@premierde9 ай бұрын
Nice. 👌 template_file is no longer supported
@NedintheCloud9 ай бұрын
Is that official? I thought it was just archived but still available. Regardless, don't use it!