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

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

2 Answers 2

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.