More than one variable

I need to create more than one VM. So I need to more than one __VM_NAME variable. How can I do it?

You could use count or for_each and then build a name which includes count.index or each.value.
Or if it is applicable you could also use some kind of Auto Scaling Group (depending on your provider).

1 Like