If you want to increase the disk space of an EC2 volume, this AWS page mentions a command called growpart. However, if you have an old (circa 2015) EC2 instance that was initially a Ubuntu 16.04 release, the command may not be available.

The command is part of a package called cloud-utils. So:
sudo apt install cloud-utils
Then you can run
growpart /dev/nvme0n1 1
After that don’t forget to resize the file system:
sudo resize2fs /dev/nvme0n1p1