Skip to content

Instantly share code, notes, and snippets.

@andresvia
Last active June 5, 2019 00:40
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/c41cd701e374286bf39e4d547fc3dd80 to your computer and use it in GitHub Desktop.
Save andresvia/c41cd701e374286bf39e4d547fc3dd80 to your computer and use it in GitHub Desktop.
./locals.tf.json.real
{
"locals": {
"s3region": {
"123": "reg"
},
"s3bucket": {
"123": "buck"
},
"name": {
"123": "prod"
}
}
}
module "foo" {
source = "git::https://gist.github.com/c5eff31b691840e0928217b4b2b79adf.git//?ref=master"
}
output "s3region" {
value = lookup(local.s3region, module.foo.foo_content)
}
output "s3bucket" {
value = lookup(local.s3bucket, module.foo.foo_content)
}
output "name" {
value = lookup(local.name, module.foo.foo_content)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment