Terraform Nested For-Expressions Without Losing Your Mind

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 27

  • @fwelk
    @fwelk ปีที่แล้ว +2

    You just blew my mind. I started learning Terraform, and you just showed me that you can manipulate strings the way you would with Powershell. That helps out a lot, thank you!

  • @RajaseelanGaneswaran
    @RajaseelanGaneswaran 3 หลายเดือนก่อน +1

    Dude, really love how you walk through the problem and explain it from a terraform POV. Love it!

    • @azure-terraformer
      @azure-terraformer  3 หลายเดือนก่อน

      Thanks a lot! That’s very nice of you to say!!! 😊

  • @prateeksarangi9187
    @prateeksarangi9187 หลายเดือนก่อน

    thanks a lot , looking forward for more video on terraform with AWS as well

  • @TheMouseJerry-du1md
    @TheMouseJerry-du1md 4 หลายเดือนก่อน +1

    As always, quality content and a real world, I have not seen this sort terraform videos anywhere on youtube. The explanation great, also it's really a good idea, that you pick the real world stuff and throw same here, which is an excellent way of teaching. That's why I have subscribed. Keep up the good quality work and thank you soo much for this wonderful video. Looking forward for more..

    • @azure-terraformer
      @azure-terraformer  4 หลายเดือนก่อน

      Wow, thanks! Very nice of you to say! LMK if there’s anything you want to see covered!

    • @TheMouseJerry-du1md
      @TheMouseJerry-du1md 4 หลายเดือนก่อน +1

      @@azure-terraformer You deserve it! May be creating a real time azure module, may be azure function, webapp, IAM module etc. would be really beneficial. Thank you!

    • @azure-terraformer
      @azure-terraformer  4 หลายเดือนก่อน

      Great ideas!!!

  • @georgeollis
    @georgeollis ปีที่แล้ว +1

    That was great! Thanks for the video

    • @azure-terraformer
      @azure-terraformer  ปีที่แล้ว +1

      Glad you enjoyed it! Good to see you still around George! 😀

    • @georgeollis
      @georgeollis ปีที่แล้ว +1

      Haha! From the start :)@@azure-terraformer

  • @jovsta
    @jovsta ปีที่แล้ว +1

    Goods stuff!

  • @arjun.s5112
    @arjun.s5112 ปีที่แล้ว +1

    Great content. Thank you.
    side note. EMEA stands for Europe, Middle East, and Africa. And for that reason, Amsterdam and Abu Dhabi feature under the same continent key :)

    • @azure-terraformer
      @azure-terraformer  ปีที่แล้ว +1

      Hey thanks! You're welcome! And yeah I get it. just seems like a bit of a stretch 🤣

  • @koodauskanava9096
    @koodauskanava9096 ปีที่แล้ว +2

    Good stuff but I think better output datamodel would be a map where the displaynames would be keys and values would be set of IP ranges.

    • @azure-terraformer
      @azure-terraformer  ปีที่แล้ว +1

      Good point then we can Foreach!!!

    • @koodauskanava9096
      @koodauskanava9096 ปีที่แล้ว +1

      @@azure-terraformer exactly. Maps and sets are just so much better in general: don’t have to worry about changing indexes in array, deterministic keys and O(1) time complexity when fetching key/value from map.

    • @azure-terraformer
      @azure-terraformer  ปีที่แล้ว

      @koodauskanava9096 you're so right. Imma ship a fix for this video soon dedicated to you my friend 🤣👍

    • @matt-ffffff
      @matt-ffffff ปีที่แล้ว +1

      I agree maps FTW - however you still need the list of objects to create the map. Due to the need to flatten first it’s a necessary step I think.
      The last step is to for over the list of objects and create a map using the display name as the key.

    • @azure-terraformer
      @azure-terraformer  ปีที่แล้ว +1

      Hey it's Matt FFFFFF in the house! 🙌 i think you're right. I created a revision that I'll share in an upcoming episode where I do just that. I think it's better to leave them as different locals for sheer comprehensiblity.

  • @karlwiren7517
    @karlwiren7517 ปีที่แล้ว +1

    People ask me what I’m using copilot for. This is a perfect example of where I just would take the exception and some context and prompt it. And let copilot fix this.

    • @azure-terraformer
      @azure-terraformer  ปีที่แล้ว

      Exactly! ChatGPT can crack these “transformation” expressions in HCL pretty easily!

  • @dus10dnd
    @dus10dnd ปีที่แล้ว +1

    A list.