A Terraform module is a set of reusable configuration files, called from another configuration with a module block. It receives input variables and exposes outputs. Modules avoid duplication and encapsulate conventions, such as a network or a database.
Example
module "reseau" { source = "./modules/reseau" cidr = "10.0.0.0/16" }