Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 868 Bytes

File metadata and controls

41 lines (30 loc) · 868 Bytes

ssm

Python CLI that leverages SSM's capability to provide an SSH access to EC2 instances.

Prerequisites

Usage

Run

uv sync
source .venv/bin/activate

to have the virtualenv activated for some profit.

In order to connect to a running EC2 instance, you must provide valid AWS credentials, e.g. by specifying the profile:

AWS_PROFILE=some-profile "./ssm.py login"

Development

Install dev dependencies and the pre-commit hook:

uv sync
uv run pre-commit install

Run linters, type checks and tests:

uv run ruff check .
uv run ruff format --check .
uv run mypy ssm.py tests
uv run pytest