Skip to content

Commit

Permalink
foreach version
Browse files Browse the repository at this point in the history
  • Loading branch information
remche committed Aug 28, 2020
1 parent 3f470b7 commit caf950e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/two/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
resource "null_resource" "wait_for_master_ssh" {
count = length(var.nodes)
for_each = {
for node in var.nodes: node.id => node
}

}

variable "nodes" {
Expand Down

0 comments on commit caf950e

Please sign in to comment.