I am investigating the possibility to start a backup up server remotely in case the main server fails. The idea is:
- Amazon Route 53 monitors the main server
- The server fails, which triggers an alarm in Cloud Watch
- Cloud Watch pushes a new Simple Message Nofication
- The SNS sends a HTTP/S request somewhere which triggers execution of a Ruby script
- The script spins off a new instance somewhere in the cloud (but not in AWS)
Is there a service available online which triggered by a HTTP/S request would execute an arbitrary Ruby script?
The service would work in a similar way to Twilio, only it would execute a script instead of sending a SMS or making a call.