i have an autoscaling group in AWS.
i want/need to be able to "number" those instances. i'll explain: lets say the ASG raise 5 instances. i want to be able to name those instance as follows: instance-name-0 instance-name-1 ... instance-name-4
is there any way to keep such numbering on the instances? (including when increasing/decreasing the desired count of the instances?)
and extra question of the same nature: how can i do that with a Spot Fleet? (give numbers to the instances, that will hold even after changes in the instances - including spot termination and change in scale)
i kinda believe that there is no such easy way to do what i want, or even hard way - without possible bugs and/or overhead, but i ask anyway - maybe i'll be surprised :)
thanks!