Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How could I do this on Amazon AWS: Automatically create a new instance on a certain Elastic IP and close another when X happens, in a database?

share|improve this question
up vote 0 down vote accepted

You need 2 things, Simple bash script command + Amazon AMI API to launch new instance. Let me give you the algorithm that how it will work then you can write it in bash+API commands.

if DB Event then Create ami Associate Elastic IP with AMI Turn on AMI

share|improve this answer

You may want to investigate CloudWatch, the AWS auto-scaling service.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.