Difficulty Level: 2
Creation Date: June 26, 2020
Original Author(s): Thyago Mota
Contributor(s):
This lab's goal is similar to lab-016 but because we want to move a volume from one AZ to another we will have to first create a snapshot of the volume and then create a new volume from the snapshot.
Create two EC2 instances in different AZs. Create an EBS volume and attach it to one of them. Create some files in the volume and then terminate the the EC2 that had the attached volume. Then follow the steps.
Go to Elastic Block Store - Snapshots.
Verify that your snapshot was successfully created at Snapshots. You might want to copy the Snapshot ID to use it on the next step. Once your snapshot is created you can delete the EBS volume.
Create a new volume from the snapshot that you created in the previous step. Make sure your volume is created on the other AZ.
Attach the EBS volume created from the snapshot to the EC2 instance running on the other AZ.
Connect to the EC2 instance running on the other AZ, mount the EBS volume and see if you can access the files created earlier.
Try encrypting the EBS volume that you will be creating from the snapshot. Use the following steps:
- create a snapshot from the EBS volume,
- copy the (unencrypted) snapshot to a new (now encrypted) snapshot, and
- create an EBS volume from the encrypted snapshot.