You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying the new experimental feature to "connect to EC2 instance in a new Remote window" from Windows, the script ec2_connect.ps1 is missing.
Logs :
2024-12-16 13:36:48.386 [error] aws.ec2.openRemoteConnection: Error: Failed to update connect script [ConnectScriptUpdateFailed]
-> EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open 'c:\Users\[redacted]\.vscode\extensions\amazonwebservices.aws-toolkit-vscode-3.39.0\resources\ec2_connect.ps1' [FileNotFound]
Steps to reproduce the issue
Start VSCode on Windows, with AWS Toolkit 3.39
Enable experimental feature "ec2RemoteConnect"
Browse to an EC2 in AWS Toolkit explorer
Click the button "connect to EC2 instance in a new Remote window"
The error is shown
Expected behavior
I should be able to open a new VSCode window, connected to this remote EC2 through SSM.
System details (run AWS: About and/or Amazon Q: About)
OS: Windows 11
Visual Studio Code version: 1.96.0
AWS Toolkit version: 3.39.0
Amazon Q version: NA
The text was updated successfully, but these errors were encountered:
So I should not expect being able to connect from WSL on Windows to a remote EC2 either? The error is different, but I'm leaving it here:
If you started vscode from WSL and are running the WSL (Linux) version of vscode, it should work. If you are connecting to WSL from Windows, then that is a "remote" situation which isn't currently supported (it would require remote-ssh in the remote (WSL) vscode instance, plus AWS Toolkit would need to understand this and invoke vscode in the correct way, which currently is not supported).
despite the Remote SSH extension being installed (v 0.116.0).
Is it installed in the remote WSL environment (not your local desktop vscode code)?
Problem
When trying the new experimental feature to "connect to EC2 instance in a new Remote window" from Windows, the script
ec2_connect.ps1
is missing.Logs :
Steps to reproduce the issue
Expected behavior
I should be able to open a new VSCode window, connected to this remote EC2 through SSM.
System details (run
AWS: About
and/orAmazon Q: About
)The text was updated successfully, but these errors were encountered: