ecs-jumper

Crates.ioecs-jumper
lib.rsecs-jumper
version0.1.4
sourcesrc
created_at2024-09-06 13:32:42.546997
updated_at2024-09-10 20:32:56.980075
descriptionGenerate awscli connection strings to running ECS tasks
homepagehttps://github.com/fmariluis/ecs-jumper
repositoryhttps://github.com/fmariluis/ecs-jumper
max_upload_size
id1365923
size48,156
Franco Mariluis (fmariluis)

documentation

README

ECS session manager helper

Simple program to output the proper awscli command to connect to a running ECS task.

Usage

ecs-jumper -c cluster-name -n container-name -s service-name -r us-west-2

Output:

Container Image: 123123123.dkr.ecr.us-west-2.amazonaws.com/example:7a80faa
Running image Tag: 7a80faa


aws ecs execute-command \
                --region us-west-2 \
                --cluster example-cluster \
                --task arn:aws:ecs:us-west-2:123123123:task/container-name/edafda3154507abc1dfff8e33e220 \
                --container container-name \
                --command "/bin/bash" \
                --interactive

You can run it with --quiet to supress the extra output and pipe the output to the shell, allowing you to connect without copying and pasting the output.

ecs-jumper -c cluster-name -n container-name -s service-name -r us-west-2 --quiet | bash
Commit count: 0

cargo fmt