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

port forwarding with multiple exposed ports #44

Open morph027 opened 7 months ago

morph027 commented 7 months ago

I just tried port forwarding with a container having multiple exposed ports. In https://github.com/tedsmitt/ecsgo/blob/main/internal/internal.go#L158 the command fetches the first available port. It would be good to either use -f <port> and/or present a selection which port to forward. Did not had the time yet to try implementing myself, just leaving this issue here for now.

tedsmitt commented 7 months ago

Yep, good feedback. I'll take a look at implementing this when I get chance. Feel free to open a PR as well if you like!

morph027 commented 7 months ago

Had a quick look already and was trying to tinker with the select menu but somehow I struggle to create working go code 🙈