From what I see, I can see list of instances somehow but not restart/suspend/remove it. The scaling down can also take down a random instance that’s busy making some calculation.
To make things worse, I see autoscale is marked as deprecated and no normal way to access the api to handle this matter with my own implementation.
What are you trying to do with these? Right now, we don’t give very granular control over VMs, but we are working on some features to quick launch and exit specific VMs for one off work. There’s a chance we’ll be able to solve this for you soon.
Yes, I’m talking about none off work with some autoscale to have it as an alternative for lambda with “infinite timeout”. If this is implemented properly, fly.io can be a game changer for serverless.
The only way I see right now is to close the vm from inside and then a new one will be created but I can probably scale it down as the newest one will be destroyed as per your reply.
Seems a bit weird workaround but at least it will work if the scaling up/down doesn’t take much time.