Reboot the RDS Instance
Explore how to reboot an Amazon RDS instance using the AWS CLI with the --force-failover option to trigger a failover. Understand how to verify the failover by checking instance status, IP address changes, and availability zones, helping you manage highly available database environments effectively.
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 ...