3

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.

ThinkBonobo
  • 131
  • 3
  • 1
    I don't think you can that precisely, but you can use [maintenance windows](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow) to do it during a defined period. – Tim Jul 18 '19 at 20:12

1 Answers1

2

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.

vjones
  • 851
  • 7
  • 13