Created
July 10, 2018 19:59
-
-
Save thedeeno/6c6c4bb8233cac8b45ef1a2ac0f1c9bf to your computer and use it in GitHub Desktop.
can I haz foreach loop plz
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 "users" { | |
default = [ | |
'dane', | |
'justin' | |
] | |
} | |
resource "aws_instance" "{{item}}" { | |
name = "{{item}}" | |
foreach = {{var.users}} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment