How to create unique instance name in autoscale template
HI
I have an autoscale template that can scale from 2 to 10 instances, I need to have then named something like TEST-webserver-1 to 10. For example, when the heat stack creates the first 2 instances you get TEST-webserver-1 and TEST-webserver-2. If an alarm triggers and starts a new instance then i would want the new instance to be named TEST-webserver-3 and so on up to TEST-webserver-10. Also from when an instance is terminated as the alarm has cleared say back down to TEST-webserver-6 I would still like the next alarm to create TEST-webserver-7. Is there anyway of setting this in the heat template with a function
creating the name isnt the problem, its getting the sequential part working
i have so far
name: {"Fn::Join": ["-", [{ get_param: "OS::stack_name" } , "webserver"]]}
what do i need for the sequential numbering
Any help with this would be much appreciated
Cheers
Check this answser, too: https://ask.openstack.org/en/question...