Skip to content

Allow to define "host", "portNumber", "localPortNumber" during port forwarding session #54

@otbe

Description

@otbe

Hello,

first of all ecsgo is a great tool and really improves quality of (engineer) life a lot :)

I wonder if it would be possible to allow specifying all 3 values after the selection of specific container. This way one could use ecsgo --forward to also tunnel via the container to a database instance which is only accessible to the container itself. So basically using the container as a jumphost.

Something like this works very well:

 aws ssm start-session --target ecs:<cluster>_<taskId>_<runtimeId> --document-name AWS-StartPortForwardingSessionToRemoteHost --parameters '{"host":["my-postgres-database.internal"],"portNumber":["5432"], "localPortNumber":["5432"]}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions