Created
March 23, 2017 17:40
-
-
Save thatderek/22c068d8857e6770708eb10dec93d2b1 to your computer and use it in GitHub Desktop.
Revisions
-
thatderek created this gist
Mar 23, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ variable "manual_foos_list" { default = [] } resource "bar" "n" { count = "3" foo = "${length(var.manual_foos_list) > 0 ? element(var.manual_foos_lists, count.index) : element(data.foos.*.id, count.index)}" }