redhat-developer / mapt

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

[spike] mac life cycle #170

Closed adrianriobo closed 8 months ago

adrianriobo commented 10 months ago

Need to explore which would be the best option to handle hot refresh on mac machines.

The idea would be create custom AMIs:

  1. Create dedicated host
  2. Create 12 machine 22. Store private key to access the machine 23. Once machine is healthy create snapshot / and AMI from it (link to private key and data for target type of dedicated host)
  3. Same for OS 13
  4. Same for OS 14

With previous set of AMIs for a type of dedicated host:

1 Create dedicated host

  1. Create mac machine
  2. Refresh mac machine #169 . This step would use one of previous AMIs once it is healhty it will change the key for a new generated key within the process
adrianriobo commented 10 months ago

The strategy has been tested through the AWS console and it is working so far, hint when create the AMI from the snapshot make sure the right ARCH is set

adrianriobo commented 10 months ago

Another hint , as AMIs would be created from a different machine when we use the root private key to connect to it we need to do not check the host -o StrictHostKeyChecking=no

adrianriobo commented 10 months ago

Time reduction for spin new instance goes from 1+ hour to 7 mins aprox