I'm sorry if it feels like a dumb question to you.But I have to know this.
What is the use of "Attach to Auto-scaling Group" in AWS?
Let me be more specific about this question.
Suppose I have an auto-scaling group with a launch configuration. Lets name it ABC-asg I used ami-12345 for that launch configuration. Now I have another instance from ami-56789. Lets name my instance xyz and I've installed some packages in it. I attached my instance xyz to the autoscaling group ABC-asg.But the new instances launched by that asg are using ami-12345.
My questions are
1.What is the use of attaching my instance to an existing auto-scaling group?
2.If it is about the "different ami" in my instance. So if I attach an instance with "same ami" will my packages replicated to the next instances launched by the asg?
Please someone help me with this question.