Skip to content

EC2 Remote from Windows : ec2_connect.ps1 missing #6248

Open
@ojacques

Description

@ojacques

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.

image

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

  1. Start VSCode on Windows, with AWS Toolkit 3.39
  2. Enable experimental feature "ec2RemoteConnect"
  3. Browse to an EC2 in AWS Toolkit explorer
  4. Click the button "connect to EC2 instance in a new Remote window"
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions