See the AWS documentation.

Resize partition

sudo growpart /dev/nvme0n1 1

Resize filesystem

Resize EXT4 in a partition

sudo resize2fs /dev/nvme0n1p1

Resize XFS in a partition

Where / is the mountpoint.

sudo xfs_growfs -d /

Resize BTRFS in a partition

Where / is the mountpoint.

sudo btrfs filesystem resize +10g /