How to sync my EC2 instance while autoscaling

When autoscaling my EC2 instances for an application, is the best way to keep all instances in sync?

For example, there are user settings and application files, as shown below.

  • Apache httpd.conf
  • php.ini
  • PHP source for my application

To do my autoscaling job, they all have to be the same in every instance of EC2, and I want to know how best to synchronize these elements.

+7
amazon-ec2 replication
source share
1 answer

You can use a private AMI that contains scripts that install software or verify code from SVN, etc. The second option is to use a deployment infrastructure such as chef or puppet .

How this works with Amazon EC2, you can pass user-data to each instance - usually a script to run commands, for example, to bootstrap. As far as I can see CreateLaunchConfiguration , you can define this as well.

If you start it yourself, this is too many obstacles, I would recommend a service such as:

They all offer some form of scaling.

NTN

+4
source share

All Articles