Created
April 15, 2017 16:14
-
-
Save vancluever/a521baeb4a5c77cbefe9b4e5aabe0e56 to your computer and use it in GitHub Desktop.
Naming module (old form)
This file contains 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
variable "env" { | |
type = "string" | |
} | |
variable "region" { | |
type = "string" | |
} | |
variable "endpoint_name" { | |
type = "string" | |
} | |
variable "domains" { | |
type = "map" | |
default = { | |
"production" = "foobar.local" | |
"staging" = "dev.foobar.local" | |
} | |
} | |
output "endpoint_name" { | |
value = "${var.endpoint_name}.${var.region}.${var.domains[var.env]}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment