Terraform

Aside from .tfvars files or CLI arguments, how can you inject dependencies from other modules?

Difficulty: unrated

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

Answer

The built-in terraform way would be to use remote-state to lookup the outputs from other modules. It is also common in the community to use a tool called terragrunt to explicitly inject variables between modules.