-
Notifications
You must be signed in to change notification settings - Fork 74
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
VSCode/AWS CDK Error with credential_provider. #89
Comments
I'm running into the same issue. I hadn't run
Not entirely sure if this is a bug in CDK or aws-sso-util, but like @johnowens00 mentioned, removing the |
I'm skeptical this is a problem with aws-sso-util, the credential process is compliant with the spec. The JS SDK v2 has slowly been fixing its Identity Center support, I wouldn't be surprised if it also has credential process problems, but this is the first I've heard of it. When you generate profiles, you can use Let me know if it is still happen and I will try to figure out what the SDK's problem is. |
When trying to use VSCode w/ AWS CDK an error happens saying that the credential_provider could not be found. I confirmed in my .aws/config file there's a profile with a credential_provider line. Opened ticket w/ AWS Support and they suggested it's an issue with aws-sso-util.
Error message from VSCode:
2023-02-02 14:57:33 [ERROR]: _aws.auth.reauthenticate: Error: Unable to authenticate connection
-> CredentialsProviderError: Profile aws.account.2.AdministratorAccess did not contain credential_process.
snipped from .aws/config
[profile aws.account.2]
region = us-east-1
aws_session_expiration = 2023-01-20T02:02:25
sso_start_url = redacted
sso_region = us-east-1
sso_account_name = aws-account.2
sso_account_id = redacted
sso_role_name = Administrator.Access
credential_process = aws-sso-util credential-process --debug --profile aws.account.2.AdministratorAccess
sso_auto_populated = true
It's worthy to note that if I delete the credential_process line it will log in but not auto-refresh credentials. Nothing in the debug file shows warnings or errors for anything attempted. I'm not attaching the debug log as it contains token info.
The text was updated successfully, but these errors were encountered: