Skip to main content

Unofficial CLI to manage Lambdalabs Cloud resources such as: instances, ssh keys

Project description

lamblbs

Unofficial Lambdalabs CLI

⚡ Minimalistic CLI to manage your Lambdalabs Cloud instances ⚡


Introduction

This is a personal project that helped me automate the provisioning and deprovisioning of Lambdalabs Cloud instances while I was playing with Ray on-prem clusters. I thought it might be useful for others and decided to share it for anyone to use it. This CLI is leveraging the Lambdalabs API, but it is by no means endorsed by or associated with the Lambdalabs company.

Pre-requisites

Configure your Lambdalabs API key using

export LAMBDALABS_API_KEY=....

Installation

pip install lamblbs

Usage

List instance types

lamblbs instance types

List running instances

lamblbs instance show-all

Launch a new instance

lamblbs instance launch \
--name ray-head-node \
--type gpu_1x_a10 \
--region us-west-1 \
--ssh_key lambdalabs-ssh-ray \
--qty 1

NOTE: This assumes you've created the lambdalabs-ssh-ray before hand.

Check and wait for your instances to be active

lamblbs instance check-status --status active

There are other supported commands as well which can be displayed using:

lamblbs --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lamblbs-2024.2a0.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

lamblbs-2024.2a0-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page