I have deployed my application on amazon ec2. I have installed tomcat and mysql on ec2 instance. What will happen if auto scale creates new instance? will it copy tomcat and mysql on new instance? Appreciate the answer provided.
Thanks Inderjeet
No it won't automatically copy any of that. You need to move your database outside the autoscaling group, probably into RDS. And you need to configure startup scripts that will install your application on a new instance, or create a custom AMI for the autoscaling group to use.
Auto Scaling requires you to define a Launch Configuration.
The Launch Configuration tells Auto Scaling how to launch new instances. It includes:
Therefore, if you want software to be installed on an instance that is created by Auto Scaling, you can do it via two methods: