Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created November 15, 2019 22:00
Show Gist options
  • Save big-samantha/2c8b8c6197459b1d5bb700ca0c9632ec to your computer and use it in GitHub Desktop.
Save big-samantha/2c8b8c6197459b1d5bb700ca0c9632ec to your computer and use it in GitHub Desktop.
locals {
modules_location = lookup(
yamldecode(file("${get_terragrunt_dir()}/${find_in_parent_folders("organization.yaml")}")),
"modules_location"
)
module = lookup(
yamldecode(file("${get_terragrunt_dir()}/locals.yaml")),
"module"
)
}
terraform {
source = "${local.modules_location}/${local.module}"
}
include {
path = find_in_parent_folders()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment