Created
November 15, 2019 22:00
-
-
Save big-samantha/2c8b8c6197459b1d5bb700ca0c9632ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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