Hacker News new | ask | show | jobs
by hericium 1387 days ago
> disabling a block without having to introduce a count parameter

for_each is (weird and unpleasant but) an option, too.

    for_each = var.enabled ? ["thing"] : []