Accessing and Using Terraform Modules

Terraform Modules

  • A module is a container for multiple resources that are used together.

  • Every Terraform configuration has at least one module, called the root module, which consists of code files in your main working directory

  • Modules can downloaded or referenced from:

    • Terraform Public Registry

    • A Private Registry

    • Your local system

  • Modules are referenced using module block

Using Terraform modules

  • Modules can optionally take input and provide outputs to plug back into your main code

Last updated