Modules | Terraform Tutorial | #15

Published: 01 July 2020
on channel: Will Brock
121,821
1.9k

Modules group multiple resources together to create reusable code throughout your configurations. Modules can be thought of like packages in Python or modules in Javascirpt. A developer calling a module doesn't need to know about the underlying behavior and needs to only pass in the required data.

In this video tutorial I'll go over how and when to create modules along with some best practices.

Root and child modules
Output values from modules
Use output values as inputs to other modules or resources
Meta arguments like source and version
Folder architecture for designing modules
count, for_each and depends on in Terraform version 0.13
One module that can use multiple providers

Course Examples:
https://github.com/WillBrock/terrafor...

Module Documentation:
https://www.terraform.io/docs/configu...

Creating Modules:
https://www.terraform.io/docs/modules...

Module Sources:
https://www.terraform.io/docs/modules...

Publishing Modules:
https://www.terraform.io/docs/modules...

Module Composition:
https://www.terraform.io/docs/modules...


Watch video Modules | Terraform Tutorial | #15 online without registration, duration hours minute second in high quality. This video was added by user Will Brock 01 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 121,821 once and liked it 1.9 thousand people.