Using templatefile in Terraform

  Рет қаралды 13,395

Ned in the Cloud

Ned in the Cloud

Күн бұрын

Пікірлер: 28
@pur3D3votion
@pur3D3votion 2 жыл бұрын
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! 🙏🏼
@mymd2004
@mymd2004 7 ай бұрын
Thanks for teaching us....Regards from Argentina!
@nathanaelfrappart711
@nathanaelfrappart711 4 жыл бұрын
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. :)
@NedintheCloud
@NedintheCloud 3 жыл бұрын
Glad I could help!
@87rushi
@87rushi 3 жыл бұрын
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!
@hectordelarosa1711
@hectordelarosa1711 3 жыл бұрын
Such an awesome video, saved me hours of writing template_file
@NedintheCloud
@NedintheCloud 3 жыл бұрын
Glad it helped!
@FaidonPassias
@FaidonPassias 2 жыл бұрын
Hey! Very cool video! Love your style!
@KoljaMineralka
@KoljaMineralka 3 жыл бұрын
Thank you Ned! Just what I was looking for...
@NedintheCloud
@NedintheCloud 3 жыл бұрын
Glad I could help!
@krunalshah2484
@krunalshah2484 3 жыл бұрын
Nice Presentation and Explanation!!
@kingsadmin
@kingsadmin 3 жыл бұрын
nice one! thanks ned!
@Manishkumar-zj9zw
@Manishkumar-zj9zw 3 жыл бұрын
Great content man..
@saneejmc
@saneejmc 4 жыл бұрын
Cool..Nice one as usual👍
@ApoorvaGarg0308
@ApoorvaGarg0308 3 жыл бұрын
Thanks for the tutorial. Very helpful!
@snitkjaer
@snitkjaer 2 жыл бұрын
Would it be possible to create providers dynamically using templatefile? I.e. depending on data create an azurerm providers for each subscription_id
@shekelboi
@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.
@tuipo5
@tuipo5 3 жыл бұрын
Brilliant !
@longb1913
@longb1913 3 жыл бұрын
2:21 video start
@itsalushta
@itsalushta 3 жыл бұрын
Hello, How save output in file? just > filename? Or some plugin can make file with output with template what I want?
@akshaylavhale2172
@akshaylavhale2172 3 жыл бұрын
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.
@pallabkolkata
@pallabkolkata 3 жыл бұрын
@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.
@NedintheCloud
@NedintheCloud 3 жыл бұрын
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.
@nathanbenton2051
@nathanbenton2051 3 жыл бұрын
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
@DallasGraves Жыл бұрын
Hi, it's me from the future, here to report that Hashicorp has in fact deprecated the "template_file" plugin.
@NedintheCloud
@NedintheCloud Жыл бұрын
🎊🎊🕺🪩
@premierde
@premierde 9 ай бұрын
Nice. 👌 template_file is no longer supported
@NedintheCloud
@NedintheCloud 9 ай бұрын
Is that official? I thought it was just archived but still available. Regardless, don't use it!
Using Dynamic Blocks in Terraform
21:38
Ned in the Cloud
Рет қаралды 12 М.
Terraform Workspaces Are Bad Actually, And Here's Why.
20:33
Ned in the Cloud
Рет қаралды 7 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Using Moved Blocks in Terraform
17:49
Ned in the Cloud
Рет қаралды 6 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 227 М.
Terraform Basics: Local Values
19:08
Ned in the Cloud
Рет қаралды 7 М.
Parsing Data with For Loops
28:28
Ned in the Cloud
Рет қаралды 11 М.
Terraform with Multiple State Files
26:14
Michael Crilly
Рет қаралды 21 М.
Modules | Terraform Tutorial | #15
35:11
Will Brock
Рет қаралды 121 М.
Understanding Ownership in Rust
25:30
Let's Get Rusty
Рет қаралды 279 М.
Exploring the Import Block in Terraform 1.5
23:44
Ned in the Cloud
Рет қаралды 16 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 106 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 36 М.
Проверил, как вам?
1:01
Коннор
Рет қаралды 964 М.
Карина Кросс #shorts
0:16
Dolly and Friends Shorts Cartoons
Рет қаралды 361 М.
Monster My Best Friend 🥹❤️👻 #shorts Tiktok
1:01
BETER BÖCÜK
Рет қаралды 29 МЛН