In this demo, we will:
ebs-demo-1
ebs-demo-key-pair-1
lsblk
sudo mkfs -t ext4 /dev/xvdf
sudo mkdir /mnt/ebs-volume
sudo mount /dev/xvdf /mnt/ebs-volume
df -h
cd /mnt/ebs-volume
cat test_file.txt
sudo chown ec2-user:ec2-user /mnt/ebs-volume
echo 'This is a test file on my EBS volume' > /mnt/ebs-volume/test_file.txt
sudo chmod 755 /mnt/ebs-volume
Snapshot of EBS-Demo-Volume
Name
EBS-Demo-Snapshot
sudo umount /mnt/ebs-volume
sudo mount /dev/xvdf /mnt/ebs-volume
cat /mnt/ebs-volume/test_file.txt