EC2 macOS Utils is a CLI-based utility that provides commands for customizing AWS EC2 Mac instances. Currently, there exists one command (grow) for resizing volumes to their maximum size. This is done by wrapping diskutil(8), gathering disk information, and resizing the disk. The utility will be installed by default for all AMIs vended by AWS after December 8, 2021. ec2-macos-utils is also available as a cask for installation and updates via AWS' Homebrew tap. EC2 macOS Utils supports global flags that can be set with any command. The grow command resizes an APFS container to its maximum size. This is done by fetching all disk and system partition information, repairing the physical device to update partition information, calculating the amount of free space available, and resizing the container to its max size. Repairing the physical device is necessary in order to properly allocate the amount of available free space.
Features
- Utilities for common tasks on EC2 macOS instances to simplify operation & administration
- Disk manipulation and system configuration helpers
- Tasks are reached through subcommands, each with help text and usages that accompany them
- Run a cover of all Go tests in the package
- This project is licensed under the Apache-2.0 License
- Run goimports to reformat source files according to gofmt