Reboot the RDS Instance
Learn to reboot the RDS instance and force a failover.
We'll cover the following...
We'll cover the following...
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:
Run it in the ...