RedHatQE / cloudwash

A cloud resources cleanup utility tool
Apache License 2.0
24 stars 29 forks source link

Support for deleting EC2 Mac Instances in AWS #28

Open mvinkler opened 2 years ago

mvinkler commented 2 years ago

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

jyejare commented 2 years ago

@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.

mvinkler commented 2 years ago

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.