When Amazon VPC protection is enabled, the EBS direct API restore process includes the following stages:
-
Create empty snapshots in the destination using the StartSnapshot API.
-
Write data by running the PutSnapshotBlock API.
-
Complete the snapshots using the CompleteSnapshot API.
-
Create volumes from snapshots.
-
Check and validate the network entities such as VPC, subnet, security groups, and NICs. If any entities are deleted, re-create them.
-
Attach the volumes:
-
If the instance exists, attach the new volumes to the instance.
-
If the restore is to a new instance, create a new instance with the restored network configuration and attach the restored EBS volumes.
-
-
Delete the snapshots.