Infrastructure · Flashcard

What is a module in Terraform?

  • AA container of Terraform files in a directory used together as a reusable unit
  • BA single Terraform file that defines exactly one resource for one provider
  • CA plugin that teaches Terraform how to manage a specific platform's API
  • DA stored record of the real infrastructure that Terraform currently manages

Why this is the answer

A module is a directory of .tf files grouped as a reusable unit, not a single file. A plugin that wraps an API is a provider, a different concept.

Official docs
Study in Gnoseed →