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