How can I use AWS Toolkit with SSO and sign into organization accounts.

0

Hello,

I was able to add a new connection in the explorer with the link https://d**.awsapps.com/start and the accounts with role names started showing up. However, I cannot log in/view resources from any account, I get this error 2024-07-17 11:29:22.498 [warning] auth: failed to load linked profiles from "*": TooManyRequestsException: HTTP 429 Unknown Code

Navin
已提问 3 个月前235 查看次数
1 回答
0

I am actively using this VSCode + AWSToolKit. But not faced this error anytime. I use AWS CLI to configure the profile first using **aws configure sso** command.

Enter image description here

It seems that when you tried to log in or view resources from the accounts listed in the explorer, the extension made too many requests to AWS in a short period, triggering the rate limiting error.

Here are some potential solutions to resolve this issue:

  1. Restart VSCode: Sometimes, a simple restart of VSCode can help clear any temporary issues or caches that might be causing the rate limiting error.

  2. Update the AWS Toolkit Extension: Ensure that you have the latest version of the AWS Toolkit extension installed. New versions often include bug fixes and performance improvements that could resolve the issue.

  3. Clear the AWS Toolkit Extension Cache: The AWS Toolkit extension caches data to improve performance. However, if the cache becomes corrupted or outdated, it can cause issues. Try clearing the extension cache by following these steps:

    • Go to File > Preferences > Settings (or press Ctrl+,)
    • Search for "AWS Toolkit"
    • Find the "AWS: Clear Credentials" setting and click the "Edit in settings.json" link
    • Add the following line to the settings.json file: "aws.clearCredentials": true
    • Restart VSCode
  4. Check AWS Credentials: Ensure that the AWS credentials you're using have the necessary permissions to access the resources you're trying to view. Incorrect or insufficient permissions can sometimes trigger rate limiting errors.

  5. Disable Automatic Resource Fetching: The AWS Toolkit extension automatically fetches resources when you expand nodes in the explorer. You can try disabling this feature to reduce the number of requests made to AWS:

    • Go to File > Preferences > Settings (or press Ctrl+,)
    • Search for "AWS Toolkit"
    • Find the "AWS: Disable Automatic ResourceFetchingForAwsExplorer" setting and set it to true
  6. Report the Issue: If none of the above solutions work, you can report the issue to the AWS Toolkit extension team on their GitHub repository: https://github.com/aws/aws-toolkit-vscode/issues

By following these steps, you might be able to resolve the "TooManyRequestsException: HTTP 429 Unknown Code" error in VSCode and successfully view resources from your AWS accounts using the AWS Toolkit extension.

AWS
已回答 3 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则