Тёмный

Parsing Data with For Loops 

Ned in the Cloud
Подписаться 15 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@methate
@methate 2 года назад
I read official TF Doc, I read some articles. Nothing helped to get an idea how it's actually working. So, I'm happy that I found your video. It's perfect explanation. In fact, probably you're the best presenter that I've ever seen (and I've seen a lot of presenters). Please continue doing your good job!
@deefdragon
@deefdragon 2 года назад
This is a ridiculously good tutorial on complex data structures in terraform. This is literally exactly what I have been looking for to wrap my head around them. I will be honest, this is not something I would expect from someone with 3.75 K subs. More like 375K. Keep on going, cause you are awesome. Edit: It took all of 5 minutes after watching this tutorial to completely refactor my code to be SOOO much more readable, and actually make logical sense. So thank you again.
@dawidmandyna8635
@dawidmandyna8635 3 года назад
Hey Ned, Great job on this video. I was looking for a while for a good explanation about the for_loops in Terraform, as their documentation is lacking a lot of information in that space. Now everything is much clearer! Thank you!
@NedintheCloud
@NedintheCloud 3 года назад
Glad I could help!
@TheXiguazhi
@TheXiguazhi Год назад
Subscribed. This makes what I'm trying to do so much easier knowing what you just said here. Thank you for saving me hours of looping in my brain so I can work on looping inside my terraform files
@NedintheCloud
@NedintheCloud Год назад
Glad it helped!
@devlinthornicroft9975
@devlinthornicroft9975 3 года назад
This video was excellent at explaining the concept. Thank you.
@vibhormathpal2021
@vibhormathpal2021 Год назад
This one is really a gold.
@AniruddhaKhadkikar
@AniruddhaKhadkikar Год назад
This has been a nirvana moment for me aka lots of aha's! Thanks a ton Ned! I will try to do something similar but with a yaml config and yamldecode.
@vonschnappi
@vonschnappi 3 года назад
“Hey everybody what’s up it’s Ned…” Yep, imma subscribe.
@MrPankajkr06
@MrPankajkr06 2 года назад
This video is gold
@ayush2708
@ayush2708 3 года назад
God or wut. I was always searching on how to visualise each line in documentation. And terrform console was it. Plus godly explanation. Thank you. :)
@MrNoartik
@MrNoartik Год назад
Oh man, you save so many hours, thanks wery helpfull
@onenationunderduress8994
@onenationunderduress8994 2 года назад
My anxiety level after that taco intro is through the roof!
@ajpatterson57
@ajpatterson57 2 года назад
Thanks for the video. Do you know how we would loop these into a data source? So for instance how would we loop a list of userprincipalnames into azuread_users to return object ids?
@moritz473
@moritz473 3 года назад
Great content! Thank you
@p.a8750
@p.a8750 3 года назад
Great video! Been trying to get my head round this for some time and your video explains it perfectly! One question - i saw some code that had the following: For i in var.instances: “${i.name} ${i.zone}” => i Trying to work out if => i is making ‘i’ have the values of i.name and i.zone from each iteration in var.instances? Var.instances was an object containing a name value and a zone value. What does => actually mean?
@NedintheCloud
@NedintheCloud 3 года назад
The syntax can be confusing: { for i in var.instances: "${i.name} ${i.zone}" => i } The curly braces indicate the resulting data type with be an object. The var. instances is the source of the for loop. I would guess that var.instances is a list of maps or objects. The "i" is the iterator for the for loop. As the loop iterates, "i" will load a map from the list of maps stored in var.instances. The i.name and i.zone come from the currently loaded map. Since we are creating an object with key value pairs, the "${i.name} ${i.zone}" is the key and the "i" is the value. The => indicates mapping a key to a value. Hopefully that clears things up! Here's the official docs too: www.terraform.io/docs/language/expressions/for.html
@p.a8750
@p.a8750 3 года назад
@@NedintheCloud thank you for explaining this!
@timsamanchi3004
@timsamanchi3004 2 года назад
thank you kind sir.
@jafarshaik5160
@jafarshaik5160 3 года назад
Loved it
@michaelhanley7112
@michaelhanley7112 3 года назад
Great Vid. But i have a question, Instead of managing a json file for data could a map variable work?
@NedintheCloud
@NedintheCloud 3 года назад
If you are able to pass the data to Terraform as a map that would be great. Sometimes you don't have control over the input format or you want to extract a small portion of a larger data structure.
@michaelhanley7112
@michaelhanley7112 3 года назад
@@NedintheCloud thank u ned
@mosksky
@mosksky 3 года назад
TY Ned another great demo! now there is no need to declare the variables (variables.tf is not needed) no more finding appropriate type as well. Any chance you could update "terraform-Tuesday" repo as a map (Parsing Data with For Loops => 2021-01-25) just use for loop :) Really hard to trace some of old recording, like this video has been dated 01/26 but the repo folder is 01/25. I am not picky just want to share my feedback
@NedintheCloud
@NedintheCloud 3 года назад
I have been thinking about updating the folder naming to the episode to make it easier. I'll see if I can fit that in before next week's episode.
Далее
Using Dynamic Blocks in Terraform
21:38
Просмотров 12 тыс.
Using Moved Blocks in Terraform
17:49
Просмотров 6 тыс.
Importing Infrastructure into Terraform
25:31
Просмотров 14 тыс.
Terraform for loop, for_each loop and count - Part 6
15:00
Using templatefile in Terraform
21:43
Просмотров 13 тыс.
Terraform Basics: Local Values
19:08
Просмотров 7 тыс.
Getting Started with Terraform Stacks
28:59
Просмотров 1 тыс.
Choosing Between Count and For-Each
17:53
Просмотров 12 тыс.