Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)}"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement