AWS Tool kit/Amazon Q Developer extension: Cannot authenticate using AWS SSO when connected via Remote SSH extension on AWS ec2 instance #6595
Labels
amazon-q
auth-credentials
authentication, authorization, credentials, AWS Builder ID, sso
guidance
General information and guidance, answers to FAQs, or recommended best practices/resources.
needs-response
Waiting on reply from issue/PR author.
remote-execute
SSM, remote-ssh, CodeCatalyst dev env, remote connect
service:ec2
System details (run
AWS: About
and/orAmazon Q: About
)Question
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:
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 --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. On https://code.visualstudio.com I found something: code.visualstudio.com/docs/remote/…. Sounds to me that AWS Toolkit/Amazon Q Developer extensions must implement vscode.env.openExternal API
How can I get this to work
Thank you so much for your assistance
The text was updated successfully, but these errors were encountered: