Is it possible to do the below using for_each?
Previously when creating an EC2 we would construct the Name tag value and append it with a number. Such as TESTSERVER01
When using count this allowed us to create multiple EC2’s with the number increasing by 1 each time using
var.integer_suffix + count.index
So if we defined var.interger as 01 you could construct names like the below with a count of 3:
I am now looking at trying to do something similar when creating the EC2’s using for_each but have not found a way yet. Is this possible?