Terraform

When working with nested layout of many directories, it can make it cumbresome to run terraform commands in many different folders. How to deal with it?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

There are multiple ways to deal with it:

  1. Write scripts that perform some commands recursively with different conditions
  2. Use tools like Terragrunt where you commands like "run-all" that can run in parallel on multiple different paths