-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for interactive Start-SSMSession #283
Comments
Hi, I'm looking to execute the following for RDP: Start-SSMSession `
-DocumentName AWS-StartPortForwardingSession `
-Parameter @{ "portNumber" = "3389"; "localPortNumber" = "56789" } `
-Target "i-xxxxxxxxx" Is this something that would be covered by this request or is it supposed to be possible already? I wonder if I can use this thread to ask what the use of the current PS implementation is? Thanks in advance, Adam |
@iancward Thanks for submitting feature request. All PowerShell CmdLets execute the AWS service command and return the results to the end user, in this case |
The documentation for this cmdlet says:
What are you supposed to do with the StartSessionResponse? I'm not on Windows and I have the session manager plugin installed--the documentation is a little confused and seems lifted from the AWS CLI, but it kind of implies to me that if I'm not on Windows and I do have the plugin installed I should be able to enter my session this way. If that's not the intention, could it indicate what you're supposed to do with the StartSessionResponse to actually connect to it? |
I'm trying to use ESC exec to get an interactive shell into a container running on AWS Fargate. It works fine with the AWS CLI, but I would rather use the AWS Tools for PowerShell to get an interactive shell into my remote container. # Launch an interactive process in Fargate container
$Params = @{
Cluster = 'trevor-fargate'
Container = 'easyproxy'
Command = '/opt/microsoft/powershell/7/pwsh'
Interactive = $true
Task = '4529facf1b9d4aefb6c3f228ffc81baa'
}}
$s = Invoke-ECSCommand @Params
# Try to get interactive session
Resume-SSMSession -SessionId $s.Session.SessionId The |
I'm confused about when this cmd-let can be used when the document states "Amazon Web Services Tools for PowerShell usage: Start-SSMSession isn't currently supported by Amazon Web Services Tools for PowerShell on Windows local machines". https://docs.aws.amazon.com/powershell/latest/reference/items/Start-SSMSession.html |
Describe the feature
I would like to be able to use Start-SSMSession from PowerShell, just like I can with the AWS CLI
Use Case
Since I'm on a Windows machine, I'd prefer to use the native tools instead of having to install (and keep updated) the AWS CLI. I also like that AWS Tools for PowerShell is modular, so I can install only the modules I need in order to get done what I need.
Proposed Solution
AWS Tools for PowerShell would need to call the session-manager-plugin with the appropriate arguments.
Other Information
No response
Acknowledgements
AWS Tools for PowerShell version used
AWS.Tools.SimpleSystemsManagement 4.1.13
PowerShell version used
7.2.6
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: