Choosing Between Count and For-Each

Поділитися
Вставка
  • Опубліковано 28 сер 2024

КОМЕНТАРІ • 28

  • @RuiDuartept
    @RuiDuartept Рік тому +1

    you're a life saviour, the way you explain is brilliant!

  • @navinkumar6388
    @navinkumar6388 Місяць тому

    Oh explained in the best way 👍
    Loved 😍 this video 📸
    Thanks 🙏 for posting it.
    With Love from India 🇮🇳

  • @unikrau4963
    @unikrau4963 2 роки тому +1

    Wow , So impressive and advanced explanation !!!

  • @makeitcloudy
    @makeitcloudy Рік тому +1

    fantastic demo, hardly possible to invent this by it's own without seeing it on the video

  • @AntonBabenkoLive
    @AntonBabenkoLive 2 роки тому +1

    Thanks for mentioning weekly.tf, Ned!

  • @agentorange20
    @agentorange20 2 роки тому

    Great demo on the main advantage in using for_each vs count with ordered lists.

  • @Tech-ub8dd
    @Tech-ub8dd 11 місяців тому +1

    great video , thank you!

  • @BernardoGarcia19
    @BernardoGarcia19 2 роки тому

    Nice explanation to keep in mind when setting up config environments.

  • @PounderSlims
    @PounderSlims Рік тому

    Thank you for this great video, It was a great help in understanding how for_each works, and some great ways to do some testing on my own without having to build anything in AWS.

  • @SunsetNova
    @SunsetNova 8 місяців тому +1

    Wonderful explanation thanks

  • @cs31296
    @cs31296 Рік тому

    great explanation, thank you!

  • @arzlanali5591
    @arzlanali5591 Рік тому

    You are cool mate. I am not going to say what everyone else says “like your content, explanation blah blah. I really liked the way you ended saying “subscribe you might like it” it was never compelling like others. Of course the topic and content was also helpful. I’m at the mid level so looking for a terraform real-time project implementation with AWS. Do you have anything on your channel please?

    • @NedintheCloud
      @NedintheCloud  Рік тому +1

      Thanks Arzlan! I tend to do most of my examples with Azure, since everyone else seems to focus on AWS. That being said, I do have a course on Pluralsight that is called "Implementing Terraform on AWS" that you might find useful.

  • @macdilen2009
    @macdilen2009 2 роки тому

    love your content

  • @mosksky
    @mosksky 2 роки тому

    Awesome!!!

  • @premierde
    @premierde 4 місяці тому +1

    Very helpful. 🤗. If an item from the list is removed. The construct breaks. Instead why not use map 🤔 and iterate?

  • @mishamovdivar
    @mishamovdivar 2 роки тому

    For referencing a resource, for loop with filter "item.content == ..." works now because you set file content as a set key, but if you had random content in your file and want to lookup resource by key, then I think that method would not work.

  • @RovshanMusayev
    @RovshanMusayev 2 роки тому +2

    Wondering why Terraform doesn't think about a proper IF argument instead of highjacking it with count

  • @mauloqiit5257
    @mauloqiit5257 2 роки тому

    Thank you for this detailed explanation, I've a little question, can we get an index (integer value) from for_each ?
    for example can we write each.key.index ?

  • @krunalshah2484
    @krunalshah2484 2 роки тому

    Superlike

  • @ManiBalajiC
    @ManiBalajiC 3 місяці тому

    so if i wnna use for_each then i need to manual write 1-100 server for it to properly map the resource and work ?, if i delete then if i run it again , it creates for the number i defined , so i need to manually delete it.. too much of work ...

    • @NedintheCloud
      @NedintheCloud  3 місяці тому

      Hey Mani, not sure I follow. If you need ~100 nearly identical servers, then count is probably the way to go. If you have to provision 100 servers that are substantially different, you would need a set or map with 100 entries. That could come from an external file in json or yaml. Does that help?

  • @rahulsingh-iq4gd
    @rahulsingh-iq4gd 11 місяців тому

    Where did you setup your website server on Neptune ?? It took me 20 seconds to load

    • @NedintheCloud
      @NedintheCloud  11 місяців тому +1

      Pluto actually! I prefer the atmosphere. Seriously though, I am working on migrating my website off wordpress to a static web app. Just need to find the time to export all the posts.

    • @rahulsingh-iq4gd
      @rahulsingh-iq4gd 11 місяців тому

      @@NedintheCloud atleast your server is within solar system…
      never mind sir carryon with your migration..

  • @freibuis
    @freibuis 2 роки тому

    I hate count with a passion ..... but for_each needs `-target` alot of the time and that sucks if you want to bring somthing up but you have to target first :(