Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for deleting EC2 Mac Instances in AWS #28

Open
mvinkler opened this issue Jun 27, 2022 · 2 comments
Open

Support for deleting EC2 Mac Instances in AWS #28

mvinkler opened this issue Jun 27, 2022 · 2 comments
Labels
question Further information is requested RFE New Feature Request

Comments

@mvinkler
Copy link

Can you add support for deleting EC2 Mac Instances in AWS?

@jyejare
Copy link
Collaborator

jyejare commented Jul 4, 2022

@mvinkler Sounds interesting!

Just looked at the link you shared in the doc. With the first look I believe there is no vital difference between a non-mac instance (VM) and Mac instance (VM).

So the current implementation for removing the EC2 instance/VM from AWS should be good enough. It is just that you need to remember the instance prepended and the running time should match the cleanup criteria from https://github.com/RedHatQE/cloudwash/blob/master/settings.yaml.template settings file.

If you have different thought please feel free to discuss here.

@jyejare jyejare added enhancement question Further information is requested RFE New Feature Request labels Jul 4, 2022
@mvinkler
Copy link
Author

mvinkler commented Jul 4, 2022

Hi @jyejare,
it's actually not that simple.
Process for running Mac instances:
aws ec2 allocate-hosts allocates HW machine (Mac Mini).
aws ec2 run-instances installs selected macOS on the Mac Mini.
Process for teardown:
aws ec2 terminate-instances deletes the macOS from the Mac Mini
aws ec2 release-hosts releases the HW machine.

  • HW machine cannot be released if there is a running instance bound to it.
  • there is a 24-hour minimum allocation period to comply with the Apple macOS Software License Agreement
  • At the end of the 24-hour minimum allocation period, the host can be released at any time (provided there is no running instance bound to it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested RFE New Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants