tedsmitt / ecsgo

Provides an interactive prompt to connect to ECS Containers using the ECS ExecuteCommand API.
Apache License 2.0
81 stars 13 forks source link

Non-interactive task selection #28

Closed morph027 closed 1 year ago

morph027 commented 1 year ago

Just an idea. Would it be possible to supply cluster, service and taskid via commandline to directly connect to the container without the interactive menu?

e.g.:

ecsgo --profile <profile> --cmd bash --cluster <cluster> --service <service> --task <task>

Merry christmas 😉

tedsmitt commented 1 year ago

Hey @morph027 I've added this and released in https://github.com/tedsmitt/ecsgo/releases/tag/v0.4.5-beta.2 - could you check it out and feedback?

morph027 commented 1 year ago

Hi. Wow, thanks. Jip, will try later.

morph027 commented 1 year ago

Tested and can confirm it works, awesome!

morph027 commented 1 year ago

Just noticed that -u, --container stringlists Task IDas help. Should be something like Container name.

tedsmitt commented 1 year ago

Thanks @morph027 for spotting that! Good eye! Have just pushed a commit that fixes that, and will be rolled out in the upcoming release!