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.6.1.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

aws_ssm_juggle-24.6.1-py2.py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page