Terraform for loop, for_each loop and count - Part 6

preview_player
Показать описание
Terraform for loop, for_each loop and count

▬▬▬▬▬▬ ⭐️ Instruction's Guides ⭐️ ▬▬▬▬▬▬

▬▬▬▬▬▬ ⭐️ Previous Terraform tutorials ⭐️ ▬▬▬▬▬▬

Terraform for, for_each and count loops can be used for iterating over the collections like list, set and map.

▬▬▬▬▬▬ ⭐️ 🕘Timestamps ⭐️ ▬▬▬▬▬▬
0:00 - What is for, for_each and count loops
00:42 - for loop
08:21 - for_each loop
12:17 - count

Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.

Video is copyrighted and can not be re-distributed on any platform.

#devops #terraform #InfrastructureasCode #cloud
Рекомендации по теме
Комментарии
Автор

There are a lot of complicated explanations out there on how to do loops / for_each loops using Terraform. You nailed it beautifully. Thank you.

newallst
Автор

I like your tutorials, well explained, good speaking and pronunciation, not long videos, thank you!

ideasystemsmexico
Автор

I want to point out that you should use count as little as possible, especially on resource creation. If you have resource A, B, C, D, that will give you resources 0, 1, 2, 3. If B is then no longer needed, C slides into the "1" slot and D into the "2" slot. This is a huge pain. It will try to force resource recreation, which is fixable, but working around this isn't worth it. Just use for_each and reference the resource index by name. The resources need to be a set or map, but you can convert a list of strings with toset().

distantignition
Автор

Thank you For Sharing Valuable Concepts.

ramamt
Автор

Love the way you explain by adding context and bit of concept.

vettomd
Автор

learning from your videos Rahul - thanks for your videos

happylearningtricks
Автор

Thank you very much Rahul, I have learnt a lot from your Terraform videos. I can't wait to get to your other videos. Gracias

twizzoe
Автор

Hi Rahul
you are a fantastic guy that reflects on your face. my blessing all the time with you and keep making nice videos as always. welldone.

Masaf_YT
Автор

Thank you for a very wonderful presentation. However, my question is, since both the for_each and count produce the same results on AWS, am interested in knowing the difference and why should I prefer one over the other? Thank you very much!

ThinkDatahub
Автор

sir u explain good..
bt try to differentiate whats the purpose of
for
count

why to use For If we can use COUNT
try to tell also in ur next vedios
in which situation we use
for
n
in which situation we use COUNT

n.sudhirkumarn.sudhirkumar
Автор

This is a pretty good explanation, is so good I even included the link on one of my videos, please keep the good work.

TrollStdin
Автор

Thanks for your videos!
It's really nice.

nguyenminh
Автор

thank you for your knowledge sharing! You make a great work!

joe_wheat
Автор

Great post thank you. Also I found out that 'count' is a parameter of terraform, it cannot be anything else. Having this parameter in the block executes the block 'x' number of times specified in count.

cirishafranky
Автор

Hi Rahul,

thanks but how can test the out value of the functions some times locally

HavingFunWithAvyan
Автор

hi rahul you have given count = length(var.user_names) iam littile confusing over here, are you calling another file which you have mentioned already as var.user_names somewhere?

sathishdarshanala
Автор

Rahul bro

Can you please segregate all Kubernetes videos, actually I'm beginners in Kubernetes and your way of explaining is amazing, could you please make Kubernetes playlist videos step by steps

gk
Автор

can you tell me from which site did you use to create your website sir

SurajRaghunathansrjd
Автор

i under stand your session and following you ..

nerellaprasad
Автор

How to create two instances in two different regions? Please explain sir

swetham