Skip to main content

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

Project description

aws-ssm-juggle

Installation

pip install aws-ssm-juggle

Pre-requisites

session-manager-plugin

Linux

Repo

With updates (recommended): See aws-session-manager-plugin

Manual

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
ec2-juggle start --document AWS-StartInteractiveCommand --command '{"command": ["sudo -i"]}'

Start ssh session

Default:

ec2-juggle ssh

With extra arguments:

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

Copy files with scp

Default:

ec2-juggle scp --source '{instance}:/tmp/foo' --target './bar'

With extra arguments:

ec2-juggle scp --scp-args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l ubuntu" --source '{instance}:/tmp/foo' --target './bar'

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-26.3.0.tar.gz (9.2 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-26.3.0-py2.py3-none-any.whl (10.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: aws_ssm_juggle-26.3.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.12 Linux/6.19.6-200.fc43.x86_64

File hashes

Hashes for aws_ssm_juggle-26.3.0.tar.gz
Algorithm Hash digest
SHA256 2f9287bcab34b2c0f0f0a36dec5eceaa8b3bf0594124792fea3551c23d9ee4f3
MD5 28d54a0fa3ea9dbf9f7f7449735c5f84
BLAKE2b-256 d9eb67e8ea5d79b3e372df7a1d3efc0cbfeec52c96a694832a43c78f525c3c4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_ssm_juggle-26.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.12 Linux/6.19.6-200.fc43.x86_64

File hashes

Hashes for aws_ssm_juggle-26.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 23ce45e3dd253ded91fdeb01fe2a8c1dc877ee8bf7080a781d66c44481aae29d
MD5 b68c83d9f8d94f7d4d2d21c700844ed8
BLAKE2b-256 c7a09bf099c4e4327d3971b245f411127fc218e6706475d341c439a6729cb36e

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