Choosing Between Count and For-Each

Поделиться
HTML-код
  • Опубликовано: 10 сен 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 🇮🇳

  • @makeitcloudy
    @makeitcloudy Год назад +1

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

  • @unikrau4963
    @unikrau4963 2 года назад +1

    Wow , So impressive and advanced explanation !!!

  • @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 Год назад +1

    great video , thank you!

  • @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.

  • @BernardoGarcia19
    @BernardoGarcia19 2 года назад

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

  • @SunsetNova
    @SunsetNova 9 месяцев назад +1

    Wonderful explanation thanks

  • @cs31296
    @cs31296 Год назад

    great explanation, thank you!

  • @RovshanMusayev
    @RovshanMusayev 2 года назад +2

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

  • @mosksky
    @mosksky 2 года назад

    Awesome!!!

  • @macdilen2009
    @macdilen2009 2 года назад

    love your content

  • @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.

  • @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.

  • @premierde
    @premierde 4 месяца назад +1

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

  • @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?

  • @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

  • @rahulsingh-iq4gd
    @rahulsingh-iq4gd Год назад

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

    • @NedintheCloud
      @NedintheCloud  Год назад +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 Год назад

      @@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 :(