Instance increase hard drive EC2 t2


To enlarge the disk of an EC2 instance must you increase the volume first via the console and then run normally on the instance of following commands (AWS documentation):

lsblk
sudo growpart /dev/xvda 1
sudo yum install xfsprogs
sudo xfs_growfs -d /
df -h