Crates.io | ecs-jumper |
lib.rs | ecs-jumper |
version | 0.1.4 |
source | src |
created_at | 2024-09-06 13:32:42.546997 |
updated_at | 2024-09-10 20:32:56.980075 |
description | Generate awscli connection strings to running ECS tasks |
homepage | https://github.com/fmariluis/ecs-jumper |
repository | https://github.com/fmariluis/ecs-jumper |
max_upload_size | |
id | 1365923 |
size | 48,156 |
Simple program to output the proper awscli
command to connect to a running ECS task.
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