Skip to content

Instantly share code, notes, and snippets.

@andresvia
Last active June 5, 2019 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andresvia/7ee8813d4f1df942bb21a9386b457888 to your computer and use it in GitHub Desktop.
Save andresvia/7ee8813d4f1df942bb21a9386b457888 to your computer and use it in GitHub Desktop.
locals {
configs = {
prod = [
"prodconfiga",
"and",
"prodconfigb",
]
other = [
"configa",
"configb",
]
}
}
module "live" {
source = "git::https://gist.github.com/c41cd701e374286bf39e4d547fc3dd80.git//?ref=master"
}
output "config" {
type = list // this is weird!!
value = lookup(local.configs, module.live.name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment