Win this World
Win this World

Reputation: 11

What should I do in Amazon AWS to auto scale, with new instances, containing the WAR file and Tomcat server as it is in first instance?

I have my first instance in AWS EC2. It has tomcat deployed, configured and .war file of my web app. I went through the videos of Amazon AWS auto scaling, Elastic Load balancer etc.

My question is, when Ec2 creates new instances once it has meet the critical conditions (user defined CPU usage etc.), will the newly spun instances have war file and tomcat deployed (I mean cloned of first instance) or one should manually deploy and configure those???

Upvotes: 0

Views: 263

Answers (1)

Mark B
Mark B

Reputation: 200511

When you create an auto-scaling group you specify the AMI to use for new instances. You can either create a custom AMI from your current instance and tell the auto-scaling group to use that, or you can pass a script via user-data that sets up each new server after it boots up.

If you make changes to your original instance, those changes will not be automatically copied to the newer instances. I would suggest using Elastic Beanstalk as it will manage a lot of this for you and all you have to do is push your application changes to Elastic Beanstalk.

Upvotes: 1

Related Questions