Terraform Basics: Modules

Поділитися
Вставка
  • Опубліковано 16 лип 2024
  • What is a Terraform module? How do you get information in? How do you get information out? In this video, I am going to cover those questions and a little bit more as we get into some Terraform Basics.
    GitHub Repo: github.com/ned1313/terraform-...
    Terraform Certification Guide: leanpub.com/terraform-certified/
    -----------------------------------------------------------------------------------------------------
    Patreon: / nedinthecloud
    Daily Check-In: anchor.fm/ned-bellavance
    Day Two Cloud: daytwocloud.io
    Website: nedinthecloud.com
    Pluralsight: app.pluralsight.com/profile/a...
    GitHub: github.com/ned1313
    Music by Evan Williams ©2020
    Intro 00:00
    What is a Terraform Module? 2:14
    Input Variables 5:27
    Local Values 7:14
    Module Outputs 9:50
    Putting it all together 11:16
    Outro 13:29
  • Наука та технологія

КОМЕНТАРІ • 18

  • @RashadAkachi
    @RashadAkachi 3 роки тому +5

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

  • @drystack86
    @drystack86 3 роки тому +2

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

  • @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 9 місяців тому +1

    Awesome! Thank you!

  • @forexmeter3900
    @forexmeter3900 Рік тому +5

    Hands-on demo is better than a lecture

  • @denville508
    @denville508 3 роки тому +2

    Awesome!

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

    good job bro

  • @greattobehere
    @greattobehere 3 роки тому +1

    Great

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

    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.

  • @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  2 роки тому +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 2 роки тому +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

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

    Neat

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

    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

  • @isaacambi1914
    @isaacambi1914 10 місяців тому

    Start with the lessons first, adverts later

    • @NedintheCloud
      @NedintheCloud  10 місяців тому

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