Reboot the RDS Instance
Learn to reboot the RDS instance and force a failover.
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:
Press + to interact
aws rds reboot-db-instance \--db-instance-identifier wordpress-db \--force-failover \--query 'DBInstances[].DBInstanceStatus' \--output text
Run it in the ...