Skip to main content

Some AWS CLI commands with a beautiful TUI

Project description

cloudsnake 🐍

Wrapping some useful AWS cli commands to operate AWS like EC2 SSM instance connection or RDS connection using IAM authentication


example gif


pre-commit GitHub code size in bytes GitHub last commit GitHub issues GitHub pull requests GitHub Repo stars GitHub watchers Python version PyPiP version License Linter


Available implementations

  • Connect to EC2 instances using SSM. You can pass the instance id (--target) or use the interactive menu (--with-instance-selector)
  • (In progress) Connect to RDS instances using IAM authentication db token

Examples

For the examples, you need to be authenticated to AWS account using your local credentials.

In your terminal, set the corresponding AWS_PROFILE=MyProfile if not using the default. (~/.aws/credentials)

Connect to the EC2 instance using SSM

cloudsnake ssm start-session -is # will print all your instances in a terminal menu
cloudsnake ssm start-session --target i-XXXXXX  # connect to the instance specifying the target id

Installation

Using pip

pip3 install cloudsnake

[!WARNING] Probably your system will not allow this installation method due to a broken system package.

Example error
Error:

error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try 'pacman -S python-xyz', where xyz is the package you are trying to install.

If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.

If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.

Using pipx (Recommended)

Install pipx with your system package manager (apt, dnf, pacman...).

pipx install cloudsnake

Uninstall

pip3 uninstall cloudsnake
# or
pipx uninstall cloudsnake

License

cloudsnake is distributed under the terms of the GPL3 license.

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

cloudsnake-0.5.0.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

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

cloudsnake-0.5.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file cloudsnake-0.5.0.tar.gz.

File metadata

  • Download URL: cloudsnake-0.5.0.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for cloudsnake-0.5.0.tar.gz
Algorithm Hash digest
SHA256 56f9552785af23dda196defa42b68744c3bef969fcefc6d0df1e2a93d8f1a00c
MD5 32ac9c7d9b522835a6e10b0b57bbba5e
BLAKE2b-256 45301fa9df9762f49976ab0e74613eed30abd639c4f6d93de325d98be1f0b1c9

See more details on using hashes here.

File details

Details for the file cloudsnake-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: cloudsnake-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for cloudsnake-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cae9b8477bb4c6d1d6b014cadb480013667ecc89eae5b471bdbc6e99512ef40
MD5 d77a46fedcd1939cc2e60a9dd30d5220
BLAKE2b-256 c0d12ac15c5c293c6b249bc9205515d8547913d05ec831430a8652b9b4c5745c

See more details on using hashes here.

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