hashicorp/terraform — pull request #355 by mitchellh (2014-10-03 05:12:51+00:00)
Title: Variable to interpolate count index

This fixes #141

This introduces a new variable `count.index` to interpolate the index of the count into the resource. For example:

```
resource "aws_instance" "foo" {
count = 5
user_data = "Instance #${count.index}"
}
```