aws / aws/session-manager-plugin
Forward multiple ports while starting the session
- Dominant language
- Go
- Stars
- 320
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the issue**
If someone has to forward multiple ports they have to use the start-session command multiple times. For example, I want to forward port 8000 and 8080 to my local machine, then I'll do
```
aws ssm start-session --target --region --document-name AWS-StartPortForwardingSession --parameters '{"portNumber":["8080"], "localPortNumber":["8080"]}
aws ssm start-session --target --region --document-name AWS-StartPortForwardingSession --parameters '{"portNumber":["8000"], "localPortNumber":["8000"]}
```
Is there (or could there be) any easy way to achieve this multiple port forwarding?
**Expected behavior**
Ideally, this should be achieved by some command like this:
```
aws ssm start-session --target --region --document-name AWS-StartPortForwardingSession --parameters '{"portNumber":["8080", "8000"], "localPortNumber":["8080", "8000"]}
```
Contributor guide
Assessment
This issue has not been assessed yet.