supraj.dev
Terraform

Terraform modules

How do you build the same cloud setup for many projects without copying code everywhere?

28 s loop7 sentencesSilent, read alongScene: Islands
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. A Terraform module is a folder of .tf files that packages related resources so you can call it from other configurations.
  2. Input variables let each caller customise the module, so dev and prod can use the same code with different values.
  3. You call a module with a module block whose source points to somewhere such as a local path, Git repository or the Terraform Registry.