Module Structure
Study in detail the module structures in Terraform.
We'll cover the following...
Now that we learned about the different parts of a Terraform module, we can quickly cover how Terraform modules are structured.
For understanding the structure of the module, we’ll create a module with the following files:
main.tf
vars.tf
outputs.tf
There’s no hard requirement to have these three files or name them this way, but it’s a convention followed by most publicly available modules, so we’ll use them as well.
In this lesson, we’ll create the now-familiar consumer and consumed modules and introduce Terraform functions.
We can use this as an opportunity to consolidate our knowledge by ...