Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29525

CloudWatch / Route 53 : Restart an EC2 Instance If IP Requested (but shut down if idle)

$
0
0

I know how to shut down an EC2 instance that's idle, with this : https://aws.amazon.com/about-aws/whats-new/2013/01/08/use-amazon-cloudwatch-to-detect-and-shut-down-unused-amazon-ec2-instances/

However, the other side of the coin is, if there are any incoming requests to the server (via domain name / IP) then Route 53 needs to trigger something that restarts the server, IF the server is currently stopped.

NOTE : this needs to be a RESTART (start from stopped) and NOT a REBOOT.

How do I accomplish this?

Many thanks!


Viewing all articles
Browse latest Browse all 29525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>