Terraform Basics: Modules

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

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

  • @RashadAkachi
    @RashadAkachi 3 ปีที่แล้ว +5

    Man I was literally studying modules all morning lol thanks a bunch Ned.

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

    Your explanations really hit home with networking people, must be your background!

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

    Hands-on demo is better than a lecture

  • @hamidapremani6151
    @hamidapremani6151 3 ปีที่แล้ว +7

    Thank you so much. I am working on modules and that helps alot. Greatly appreciate it, would help if you can present a demo on modules as well.

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

    Awesome! Thank you!

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

    Awesome!

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

    good job bro

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

    Thankyou

  • @samanthajt4168
    @samanthajt4168 2 ปีที่แล้ว

    Hi, great help and thanks for this but the one I'm trying is puzzling me. The reusable module I want to make has a (Required) name - The name of the collector. I want to be able to give a new name each time but can't figure this out. I'm sure I'm missing something obvious here.

  • @alakanandas6358
    @alakanandas6358 2 ปีที่แล้ว

    if a value is already set in a child module and can it be overwritten by the values passed by root module?

    • @judededude
      @judededude ปีที่แล้ว

      I believe the precendent is that the root module will take effect ove the child module. But there should be no values set in the child module - those variables should be set to string

  • @p.a8750
    @p.a8750 3 ปีที่แล้ว

    Great video again! So just to clarify the root module / child module explanation. If I have some terraform config in a folder eg main.tf that calls a module and passes some values over to it, is the folder that holds the main.tf the root or the child? The module code I am calling is what defines the actual resources but where I'm calling it from is where the tf init etc takes place.

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

      The folder holding the main.tf is the root module. It's easier to think what directory you'll be executing Terraform from directly. If you're running Terraform directly against a configuration, that config is the root module for that run of Terraform.

    • @p.a8750
      @p.a8750 3 ปีที่แล้ว +1

      @@NedintheCloud ok thanks. So regardless of whether I’m creating resources directly or calling another module, the code that does the calling is considered the root and any subsequent modules being called are the child?

    • @judededude
      @judededude ปีที่แล้ว

      @@p.a8750 Yes - this will be correct the hint will be if you are working from a .tf file and the content along the lines is calling a module like this source = "../../../../modules/services/service-plan" You are working in the Root module which is then calling the child module

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

    Great

  • @lambar0
    @lambar0 ปีที่แล้ว

    Neat

  • @isaacambi1914
    @isaacambi1914 ปีที่แล้ว

    Start with the lessons first, adverts later

    • @NedintheCloud
      @NedintheCloud  ปีที่แล้ว

      I don't always control where the adverts appear. Sorry!