O'Reilly logo
  • Rusty Eddy thinks this is interesting:

You’ll notice we also changed the value of the count meta-parameter. Instead of hard-coding a number, we used the length of the var.instance_ips list as the value of the count.

From

Cover of The Terraform Book

Note

use to set flexible number of servers