Student Reviews
( 5 Of 5 )
1 review
Video of Modules Terraform Tutorial #15 in Terraform course by Will Brock channel, video No. 16 free certified online
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/terraform-course-examples
Module Documentation:
https://www.terraform.io/docs/configuration/modules.html
Creating Modules:
https://www.terraform.io/docs/modules/index.html
Module Sources:
https://www.terraform.io/docs/modules/sources.html
Publishing Modules:
https://www.terraform.io/docs/modules/publish.html
Module Composition:
https://www.terraform.io/docs/modules/composition.html