EC2 Instance Data Persistence and Migration

This EC2 lab involves creating an EC2 instance with multiple volumes, accessing it via RDP, adding data to the volumes, creating an image of the instance, copying the image to a different region, and then verifying the persistence of data.

Summary:

  • Create an EC2 Instance

  • Take the RDP of the Instance

  • Add Files and Folders

  • Create an Image of the Instance

  • Copy the Image to a Different Region

  • Create an Instance from the Copied Image in the New Region

  • RDP into the New Instance

  • Check Data Persistence

Step 1: Creating an EC2 instance:

  • Select Microsoft Windows Server.

  • Select t2.micro as the instance type.

  • Root volume (C-drive): Default size 30 GiB.

  • Additional volume (D-drive): 20GB.

  • Launching the instance.

Step 2:Taking the RDP of this Instance:

  • Select your instance, and click on Connect.

  • Choose the RDP client tab, and note the public DNS.

  • Decrypt the password using your PEM file

  • Use an RDP client (like Microsoft Remote Desktop) to connect

  • Use Administrator as the username and the decrypted password.

Step 3: Adding Files and Folders:

  • Access the C-drive and D-drive within the RDP session.

  • Create folders and add files on both drives.

Step 4: Creating an Image of the Instance:

  • Name the image and add a description.

  • Include both volumes in the image.

  • Wait for the image (AMI) creation to complete.

Step 5: Copy the Image to a Different Region:

  • Choose the destination region.

  • Name the copied AMI and add a description.

  • Wait for the copy process to complete.

Step 6: Create an Instance from the Copied Image in that Region:

  • Switching to the destination region(Ohio).

  • Go to the AMIs section and select the copied AMI.

  • Ensuring the instance type and storage configuration are appropriate then Click on Launch.

Step 7: RDP into the New Instance:

Connecting to the new instance using the same RDP process as before.

Step 8: Check Data Persistence

Verify that the files and folders created in the C-drive and D-drive are present and unchanged.