diskutil listCheck the avaliable space and the identifier for the Container partition, to me is the disk1s2 identifier on /dev/disk1 disk.
diskutil repairdisk /dev/disk1You can specify the GB that you want to resize, like this:
diskutil apfs resizeContainer disk11s2 10Gor you can fit the free space on your EC2 disk:
diskutil apfs resizeContainer disk11s2 0Now, just hit enter and check your disk size! 🥳