Skip to main content

Manage cloud development instances. Currently AWS EC2 is supported.

Project description

cloudvm

A command-line tool for managing cloud development instances. AWS EC2 is currently supported.

cloudvm streamlines the daily routine of working with a development EC2 instance: it refreshes the AWS SSO token only when expired, starts the instance, waits for its public IP to be assigned, and reports it. A list subcommand surveys instances across regions to see what is still running.

Install

pipx install cloudvm

Or, if pipx is not available:

pip install cloudvm

Requires Python 3.9 or newer and a configured aws CLI (SSO or static credentials).

Usage

# Start an instance by its Name tag
cloudvm up --name my-dev-box

# Stop an instance — returns once the stop has been triggered
cloudvm down --name my-dev-box

# List instances across regions
cloudvm list --region 'eu-central-*,us-*' --name 'my-*'

All subcommands accept --region / -r and --name / -n, and honor the usual AWS environment variables (AWS_REGION, AWS_PROFILE, ...).

Pass --update-ssh to up to point the matching ~/.ssh/config host alias at the new IP.

Shell completion

To enable tab-completion, add this to your ~/.bashrc (or ~/.zshrc, after compinit):

# This spawns cloudvm once for every new shell. See below for optimized
# alternative.
eval "$(cloudvm --print-completion bash)"   # or: zsh / tcsh / fish

Then open a new shell, or source the rc file. cloudvm <TAB> will now complete subcommands and flags.

To skip the per-shell cloudvm spawn, use a lazy stub instead — it loads the real completion on first use.

bash (~/.bashrc):

_cloudvm_lazy_complete() {
    eval "$(cloudvm --print-completion bash)"
    return 124
}
complete -F _cloudvm_lazy_complete cloudvm

zsh (~/.zshrc, after compinit):

_cloudvm_lazy_complete() {
    unfunction _cloudvm_lazy_complete
    eval "$(cloudvm --print-completion zsh)"
    "${_comps[cloudvm]}" "$@"
}
compdef _cloudvm_lazy_complete cloudvm

License

Apache License 2.0

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

cloudvm-0.1.19.20260615173426.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudvm-0.1.19.20260615173426-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file cloudvm-0.1.19.20260615173426.tar.gz.

File metadata

  • Download URL: cloudvm-0.1.19.20260615173426.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for cloudvm-0.1.19.20260615173426.tar.gz
Algorithm Hash digest
SHA256 7aee581c15eac62620fb45a219f1acca4bd92958b7f9233a828823e1b6176a3a
MD5 2f499168af4def729f644959bea4f0e1
BLAKE2b-256 c8ef349026cb5cdeee91c088ad33ac450964e7c6e30c7d3f57304d1d4dc062fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudvm-0.1.19.20260615173426.tar.gz:

Publisher: publish.yml on findepi/cloudvm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cloudvm-0.1.19.20260615173426-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudvm-0.1.19.20260615173426-py3-none-any.whl
Algorithm Hash digest
SHA256 1eccc398f8adce047bc0bc05a854862f9b89137c83e5ebc1b84b5b42b7b08f37
MD5 4565e34afca6b09b0526b941d19ec4d6
BLAKE2b-256 ad03ab5fe3e0276de1b7ff9abe8e417b424ed5cff79c4e88b633b27b62c646bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudvm-0.1.19.20260615173426-py3-none-any.whl:

Publisher: publish.yml on findepi/cloudvm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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