最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - VSCode - AWS Tool kitAmazon Q Developer extension: Cannot authenticate via AWS SSO when connected via Remot

programmeradmin3浏览0评论

I use VSCode to develop python scripts on a AWS ec2-instance using Remote-SSH see vscode documentation. I'd like to use AWS Toolkit and Amazon Q Developer Pro. I installed the extensions via vscode marketplace on the AWS ec2 instance - no erros. But when I try to connect to AWS IAM Identity Center I get the following error:

 [error] API response (oidc.eu-central-1.amazonaws /client/register): {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read',
  name: 'TimeoutError'
}


[error] ssoSetup encountered an error: TimeoutError: read ECONNRESET [ECONNRESET]
[error] webviewId="aws.toolkit.AmazonCommonAuth": Error: Webview error
         -> Error: Webview backend command failed: "createIdentityCenterConnection()"
         -> TimeoutError: read ECONNRESET [ECONNRESET]

When I try the same in a different VSCode dev project with AWS Toolkit and/or Amazon Q Developer installed locally (no remote SSH involved) - it works fine

I configured aws cli on the AWS ec2 instance and configured SSO and executing aws sso login --sso-session <XXX> --no-browse - it works fine when manually copying the URL to a browser to authenticate

I suppose it fails because the remote ssh/AWS ec2 instance cannot manage to open a browser for signing-in to AWS IAM Identity Center.

How can I get this to work

Thank you so much for your assistance

I use VSCode to develop python scripts on a AWS ec2-instance using Remote-SSH see vscode documentation. I'd like to use AWS Toolkit and Amazon Q Developer Pro. I installed the extensions via vscode marketplace on the AWS ec2 instance - no erros. But when I try to connect to AWS IAM Identity Center I get the following error:

 [error] API response (oidc.eu-central-1.amazonaws /client/register): {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read',
  name: 'TimeoutError'
}


[error] ssoSetup encountered an error: TimeoutError: read ECONNRESET [ECONNRESET]
[error] webviewId="aws.toolkit.AmazonCommonAuth": Error: Webview error
         -> Error: Webview backend command failed: "createIdentityCenterConnection()"
         -> TimeoutError: read ECONNRESET [ECONNRESET]

When I try the same in a different VSCode dev project with AWS Toolkit and/or Amazon Q Developer installed locally (no remote SSH involved) - it works fine

I configured aws cli on the AWS ec2 instance and configured SSO and executing aws sso login --sso-session <XXX> --no-browse - it works fine when manually copying the URL to a browser to authenticate

I suppose it fails because the remote ssh/AWS ec2 instance cannot manage to open a browser for signing-in to AWS IAM Identity Center.

How can I get this to work

Thank you so much for your assistance

Share Improve this question edited Feb 15 at 0:21 rioV8 28.7k4 gold badges42 silver badges60 bronze badges asked Feb 14 at 16:48 stackdudestackdude 12 bronze badges 1
  • Update: I found something here: code.visualstudio/docs/remote/…. Sounds to me that AWS Toolkit/Amazon Q Developer extensions must implement vscode.env.openExternal API – stackdude Commented Feb 17 at 15:50
Add a comment  | 

1 Answer 1

Reset to default 0

In the meantime I found a workaround: You need to install the vscode extensions locally - see https://code.visualstudio/docs/remote/ssh#_advanced-forcing-an-extension-to-run-locally-remotely

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论