Terraform

Assuming you have multiple regions configured and you would like to use a module in one of them. How to achieve that?

Difficulty: unrated

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

Answer

module "some_module" {
  source = "..."

  providers = {
    aws = aws.some_region
  }

  ...
}