Skip to main content

AWS SSM tool for ECS/EC2 (Shell, Port Forwarding, ...)

Project description

aws-ssm-juggle

Installation

pip install aws-ssm-juggle

Pre-requisites

session-manager-plugin

Linux

curl https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb -o "/tmp/session-manager-plugin.deb"
mkdir -p ~/bin
dpkg-deb --fsys-tarfile /tmp/session-manager-plugin.deb | tar --strip-components=4 -C ~/bin/ -xvf - usr/local/sessionmanagerplugin/bin/session-manager-plugin

MacOS

brew install --cask session-manager-plugin

Infrastructure

Use ecs-exec-checker to check for the pre-requisites to use ECS exec.

ecs-juggle

Inspired by ecsgo.

Provides a tool to interact with AWS ECS tasks.

Currently provides:

  • interactive execute-command (e.g. shell)
  • port-forwarding

You can supply command-line arguments to specify which cluster/service/task/... to use or will be prompted with a nice menu.

Usage

See ecs-juggle --help for all features.

Execute command

Select all from menu:

ecs-juggle command

Port forwarding

Select all from menu:

ecs-juggle forward

Specify port and select the rest from menu:

ecs-juggle forward --remote-port 8080

ec2-juggle

Inspired by gossm.

Provides a tool to interact with AWS EC2 instances.

Currently provides:

  • interactive shell (e.g. shell)
  • ssh shell
  • port-forwarding

Usage

See ec2-juggle --help for all features.

Start session

ec2-juggle start

Start ssh session

Default:

ec2-juggle ssh

With extra arguments:

ec2-juggle ssh --ssh-args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l ubuntu"

Port forwarding

ecs-juggle forward --remote-port 80

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

aws_ssm_juggle-24.12.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

aws_ssm_juggle-24.12.0-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file aws_ssm_juggle-24.12.0.tar.gz.

File metadata

  • Download URL: aws_ssm_juggle-24.12.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.11.11-061111-generic

File hashes

Hashes for aws_ssm_juggle-24.12.0.tar.gz
Algorithm Hash digest
SHA256 d44c62fe2a2b80dec9892bea52359bdb29c2ea7e26f164fbed9d1fb9713c3737
MD5 f4c076b0e21df81d3a3fd7959aa02047
BLAKE2b-256 f17c0820dc40e6d3df8a15f33119dbed1d8485d3cc9c0358baea0d3222b48084

See more details on using hashes here.

File details

Details for the file aws_ssm_juggle-24.12.0-py2.py3-none-any.whl.

File metadata

  • Download URL: aws_ssm_juggle-24.12.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.11.11-061111-generic

File hashes

Hashes for aws_ssm_juggle-24.12.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d1a340011eccd5726d7ee5f3c6e4c933b6bf66e80f185e6f0056a229a20daeb2
MD5 17372492edae6aea7c9c4b928cb7b52d
BLAKE2b-256 eeba418f0c4742601904b7515ebc871f72c14c22c4abdc5015d926cb905dcf4c

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