Created
August 31, 2016 09:05
-
-
Save garo/f43fffba012b475eb848b774d462d54c to your computer and use it in GitHub Desktop.
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 "cats" { | |
type = "map" | |
default = { | |
"0" = "grumpycat" | |
"1" = "snellacat" | |
} | |
} | |
variable "dogs" { | |
type = "map" | |
default = { | |
"0" = "doge" | |
"1" = "husky" | |
} | |
} | |
resource "aws_sns_topic" "test" { | |
name = "messages-from-${lookup(var.cats, count.index)}-to-${lookup(var.dogs, count.index)}" | |
count = "${length(var.cats)}" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment