Terraform Modules

Terraform modules are containers for multiple resources that you can use to create lightweight abstractions. This lets you describe your infrastructure in terms of its architecture, rather than directly in terms of physical objects.

The .tf files in your working directory form the root module when you run terraform plan or terraform apply. The root module may call other modules and connect them together by passing output values from one to input values of another.

See the HashiCorp Terraform documentation for more information on creating and using modules.