- Newest
- Most votes
- Most comments
So, I've identified the issue.
At the bottom of my config my work profile was redefined with sso, this caused the referenced profile in my sub-account profile to be pointing at the new landingzone instead of the old account.
Hello,
The issue arises because DataGrip is attempting to use SSO (Single Sign-On) for connecting to the RDS instance, but SSO is not configured for this account.
To resolve this, follow these steps:
1. Adjust DataGrip Settings: In DataGrip, navigate to the AWS connection settings and ensure that "Use IAM credentials" is selected rather than "Use SSO."
2. Verify IAM Credentials: Confirm that the IAM credentials (access key and secret key) are correctly configured in the ~/.aws/credentials file.
3. Update AWS Configuration: Remove any 'role_arn' settings from the ~/.aws/config file that might be configured for SSO, as they are unnecessary for IAM authentication.
By implementing these changes, DataGrip should use the IAM credentials for connecting to the RDS instance, bypassing the SSO configuration.
Relevant content
- asked 3 years ago
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 3 months ago

After further investigation this morning, It's not unique to DataGrip, even with AWS CLI(aws-cli/2.17.27 Python/3.11.9 Darwin/23.6.0 source/arm64) I have the following issue:
Error loading SSO Token: Token for new-lz does not exist.I've tried clearing the sso cache in.aws/sso/cacheand making sure that the profiles are referencing each other correctly. when I runaws configure listthe old account profile is the one active: