Initiates a failover for a single Multi-Availability Zone (Multi-AZ) EBS volume, or fails over all Multi-AZ volumes that are attached to an instance and have their active replica in the instance's Availability Zone. During a failover, EBS promotes the standby replica to the active replica. After the failover, the volume's active and standby Availability Zones are swapped.
Specify either a
VolumeId or an
InstanceId:
- VolumeId: Fails over the specified volume.
- InstanceId: Fails over all Multi-AZ volumes that are attached to the instance and have their active replica in the instance's Availability Zone. The following attached volumes are not failed over:
- Volumes that are not Multi-AZ volumes.
- Multi-AZ volumes whose standby replica is in the instance's Availability Zone.
When you specify InstanceId, all of the volumes fail over together, and the failover is crash-consistent across all of the volumes. The failover is atomic: either all of the volumes fail over, or none of them do.