Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to my LearnLab account #4587

Open
Aisuko opened this issue Mar 26, 2024 · 3 comments
Open

Cannot connect to my LearnLab account #4587

Aisuko opened this issue Mar 26, 2024 · 3 comments
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso bug We can reproduce the issue and confirmed it is a bug. needs-response Waiting on reply from issue/PR author.

Comments

@Aisuko
Copy link

Aisuko commented Mar 26, 2024

Problem

Steps to reproduce the issue

Screenshot 2024-03-26 at 4 21 01 PM

Expected behavior

System details (run the AWS: About Toolkit command)

  • OS: macOS
  • Visual Studio Code version:
Version: 1.87.2 (Universal)
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:21:31.043Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.4.0
  • AWS Toolkit version:
Name: AWS Toolkit - Amazon Q, CodeWhisperer, and more
Id: amazonwebservices.aws-toolkit-vscode
Description: Including Amazon Q, CodeWhisperer, CodeCatalyst, Application Composer, and support for Lambda, S3, CloudWatch Logs, CloudFormation, and many other services
Version: 2.16.0
Publisher: Amazon Web Services
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-toolkit-vscode
@Aisuko Aisuko added the bug We can reproduce the issue and confirmed it is a bug. label Mar 26, 2024
@justinmk3
Copy link
Contributor

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).

  1. In VSCode settings, ensure that "aws log level" is "debug".
  2. Perform the steps to reproduce the issue.
  3. Use the AWS: View Toolkit Logs command to get the logs.
  4. Remove any private info from the logs.

@justinmk3 justinmk3 added auth-credentials authentication, authorization, credentials, AWS Builder ID, sso needs-response Waiting on reply from issue/PR author. labels Mar 26, 2024
@Aisuko
Copy link
Author

Aisuko commented Mar 26, 2024

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, 

@justinmk3
Copy link
Contributor

Can you try cmd+shift+p and run the AWS: Connect to AWS command directly? It should show a menu like this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso bug We can reproduce the issue and confirmed it is a bug. needs-response Waiting on reply from issue/PR author.
Projects
None yet
Development

No branches or pull requests

2 participants