Closed Aisuko closed 5 months ago
What feature are you trying to use? Amazon Q does not support IAM credentials.
However you can click the "Connect to AWS..." item in "Explorer" to use AWS Explorer for those IAM credentials. If it shows an error, please share the logs (after removing private info).
AWS: View Toolkit Logs
command to get the logs.Hi, there. The explore feature is enough for me. After I configure the ~/.aws/config
and ~/.aws/credentials
, click the connect to was to get started
, and there is nothing change. the log please see below.
The configuration includes region
, aws_access_key_id
, aws_secret_access_key
and aws_session_token
which are copied from AWS Academy Learner Lab
2024-03-26 22:10:33 [DEBUG]: command: running "aws.refreshAwsExplorer" with arguments: [
{
collapsibleState: 0,
label: 'Connect to AWS to Get Started...',
node: {
resource: '[omitted]',
id: 'auth',
onDidChangeTreeItem: [Function (anonymous)]
},
command: {
title: 'Add Connection',
command: 'aws.auth.manageConnections',
arguments: '[omitted]'
},
tooltip: undefined,
iconPath: undefined,
description: undefined,
contextValue: undefined
},
undefined
]
2024-03-26 22:10:33 [DEBUG]: command: running "_aws.auth.autoConnect" with arguments: []
2024-03-26 22:10:33 [DEBUG]: codewhisperer: Connection is valid = false,
connection is undefined = true,
secondaryAuth connection expired = false
2024-03-26 22:10:34 [DEBUG]: codewhisperer: Connection is valid = false,
Can you try cmd+shift+p and run the AWS: Connect to AWS
command directly? It should show a menu like this:
If LearnLab uses vscode "codeserver" (web) this should be fixed now. https://github.com/aws/aws-toolkit-vscode/pull/5062
Thank you.
Problem
Steps to reproduce the issue
Expected behavior
System details (run the
AWS: About Toolkit
command)OS: macOS
Visual Studio Code version:
AWS Toolkit version: