Reputation: 1635
I am trying to set up autoscaling on AWS but have a few clarifying questions I could not find in the developer's guide.
I have set up a launch config and autoscaling policy with minimum instances = 2. I am assuming my 2 EC2 instances are blank (only OS installed). I need my web application installed in the instance. What is the best way to accomplish this?
My thinking:
Create an EC2 instance with my web app and then attach an autoscale policy to it
Is there a better way?
Upvotes: 1
Views: 109
Reputation: 6937
Autoscaling launch configurations work with AMIs. So you have to create an AMI from your EC2 instance and set this AMI (not empty OS) for launch configuration.
So one of possible ways:
Every time group is scaled up, fresh instance created from AMI is added to group.
To update your app running in autoscaling group you have two options:
Upvotes: 1