문제

I want an alarm to operate only overnight between 18:00 and 08:00 so I can keep an EC2 instance running all the working day and stop overnight if no-one is using it. Is this possible?

도움이 되었습니까?

해결책

Of course this is possible but you need to write your own script to imitate this scenario, there are ec2-api's available which will help you make this happen.

What you can do:

  1. Write a cron script that will start/stop your instances.
  2. Write a script that will take an input from cloudwatch to take a call on stopping the server if there no request for a n period.

Hope this helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top