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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aws_ssm_juggle-24.6.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c935f2f160b6d63c2b541707780053b97723b40afa9353556054c6e540686cbc |
|
MD5 | 4b43f8550491d8f9cb03be312ad16353 |
|
BLAKE2b-256 | 580526a9cc6130554a75b4943594c8bc9e46c421ed368161fda5b9faf8505ae8 |