Reboot the RDS Instance

Learn to reboot the RDS instance and force a failover.

Now, we can reboot the instance to force a failover. The command to reboot an RDS instance is reboot-db-instance. To make sure the failover happens, we can specify the --force-failover parameter. As usual, we also need to specify the database via the --db-instance-identifier parameter. We can limit the output via --query and only output the DBInstanceStatus.

Therefore, the full command looks like this:

Get hands-on with 1200+ tech skills courses.