AWS – Increasing the size of an EC2 instance’s primary EBS volume

This is really good guide:


I have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!

basically stop your instance, detach the primary volume (/dev/sda1), create a snapshot from this ebs volume, create a volume (with increased diskspace) from the snapshot, attach the new bigger volume to the ec2 instance, as /dev/sda1.

start the instance again.