Is there a way to schedule the reboot of an RDS instance to a certain time?

I know how to manually reboot it but I didn't see any UI or documentation on how to trigger a reboot at, for example, two minutes to midnight.

  • 1
    I don't think you can that precisely, but you can use maintenance windows to do it during a defined period. – Tim Jul 18 at 20:12

Here's one way:

Use a combination of AWS services and a bit of scripting or coding. First, notice that you can reboot an instance using the CLI or an SDK like boto. You can also schedule a lambda function to occur with Cloudwatch Event Rules. So you could write a lambda to reboot the instance and schedule it to happen at a given time using CloudWatch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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