redhat-developer / mapt

Multi Architecture Provisioning Tool
Apache License 2.0
9 stars 7 forks source link

[enhancement] Speed up macos instances #169

Closed adrianriobo closed 8 months ago

adrianriobo commented 10 months ago

The main problem with mac instances is destroying / create a new one takes aprox 1 hour this process could be speed up using the feature for replace root volume.

As we do some customizations on boot time ideally we will do that and create a snapshot based on the custom modifications, from there we will use the snapshot to to replace the root volume of the instance

https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#EC2.CreateReplaceRootVolumeTask

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replace-root.html#replace-launchstate

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replace-root.html

https://aws.amazon.com/about-aws/whats-new/2023/02/amazon-ec2-mac-instances-root-volumes-quick-instance-restoration/