After the incorporation of ec2-macos-utils in the new GrowRootAPFSVolume module, the following error can occur for instances launched with the default 100 GB EBS volume:
2023/08/15 13:43:47.630235 Error while running module [GrowRootAPFSVolume] (type: command, group: 3) with message: and err: ec2macosinit: error executing command [[/bin/zsh -c ec2-macos-utils grow --id root]] with stdout [] and stderr [time="15 Aug 23 13:43 PDT" level=info msg="Configuring diskutil for product" product="macOS Ventura 13.4.1"
time="15 Aug 23 13:43 PDT" level=info msg="Attempting to grow container..." device_id=disk5s2s1
time="15 Aug 23 13:43 PDT" level=info msg="Checking if device can be APFS resized..." device_id=disk5s2s1
time="15 Aug 23 13:43 PDT" level=info msg="Device can be resized"
time="15 Aug 23 13:43 PDT" level=info msg="Repairing the parent disk..."
time="15 Aug 23 13:43 PDT" level=info msg="Repairing parent disk..." parent_id=disk4
time="15 Aug 23 13:43 PDT" level=info msg="Successfully repaired the parent disk"
time="15 Aug 23 13:43 PDT" level=info msg="Fetching amount of free space on device..." device_id=disk5
time="15 Aug 23 13:43 PDT" level=warning msg="Available free space does not meet required minimum to grow" required_minimum="1.0 MB" total_free="41 kB"
Error: not enough space to resize container: 40960 bytes available]: exit status 1
2023/08/15 13:43:47.630350 Successfully completed processing of priority level 3
After the incorporation of ec2-macos-utils in the new
GrowRootAPFSVolume
module, the following error can occur for instances launched with the default 100 GB EBS volume:This should be addressed by https://github.com/aws/ec2-macos-utils/issues/5.