user3063045
user3063045

Reputation: 2199

AWS AutoScaling Increment Name Tag

I've created an AutoScaling group in AWS and I'd like to auto-increment the Name Tag so that my instances actually make sense in the console.

Example:

MyAwesomeWebApp - Scaling Group
Load Balancers - webapp
Desired - 1
Min - 1
Max - 5
..........

Instance Names Should be (Depending on scale myawesomewebapp1 will always be up but the rest don't have to be):

myawesomewebapp1
myawesomewebapp2
myawesomewebapp3
myawesomewebapp4
myawesomewebapp5

This was mentioned here but not answered fully:

How to change new instance tag Name when auto scaling

Upvotes: 0

Views: 4470

Answers (1)

jzonthemtn
jzonthemtn

Reputation: 3404

You can't accomplish that in an autoscaling group configuration. However, with the API you could. When a new instance starts it could send an SNS notification that triggers (perhaps via an HTTP endpoint) an API call to set the instance's name tag based on some logic/counter combination.

Upvotes: 1

Related Questions