I’m a new user to the platform and find it amazing, except when it’s overloaded, which isn’t rare. So I want to automate the process of seeing which instances are available and want to create one, with the API. However, the API prompts to enter the password, which makes it hard to automate the process. If someone has a bash or Python script, would you be kind enough to share it with me?
It might be overkill but if you enjoy using Terraform to automate your infrastructure I’m using my own custom Lambda GPU Cloud Terraform Provider for these sorts of things. You can specify “any” as an instance type, create/destroy ssh keys, set up default packages and setup tools/scripts.
It’s still messy though. If you want to collaborate or if you just want to try it out, feel free to shoot me a message!
If not, their API docs are really solid and I’m sure writing a Python wrapper to chime a bell if an instance you might be interested in becomes available would be easy.
Yes typically customers who would like this write a script with our API to snag an open instance when its available. Just remember charges will start once you grab the instance.
Cheers,
Bryan
Linux Support Engineer
Lambda λ