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.1.0.tar.gz (9.3 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.1.0-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: aws_ssm_juggle-26.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.2 Linux/6.18.5-200.fc43.x86_64

File hashes

Hashes for aws_ssm_juggle-26.1.0.tar.gz
Algorithm Hash digest
SHA256 8d5e409efd4ec00023afac02469f75eccb8c58003548c1fbd133f10fc54f789e
MD5 07fef3e3e6ce09ac9a76fced5166f42a
BLAKE2b-256 597ccf609f1fc4f4419efb39da85aa07e98ca9cc609bcc6b031d2e780e021c8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_ssm_juggle-26.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.2 Linux/6.18.5-200.fc43.x86_64

File hashes

Hashes for aws_ssm_juggle-26.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6bc882ff99d99cb171afc2b6784a94784e1db70260a623fb03ca9fffeb6d5389
MD5 4cda9ee3667991d501d108870e9d3d58
BLAKE2b-256 5b137953f6b548445d44dfde41249110ccd1bd15d89220f40a82fa10c95ff1aa

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